资源描述:
《基于net项目的代码书写规范要求书(code writing requirements based on net project)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、基于net项目的代码书写规范要求书(Codewritingrequirementsbasedonnetproject)Codewritingrequirementsbasedon.NETprojectInthispaper,abriefcodewritingspecificationforaprojectinthesecondhalfoftheyearisnotdetailed,butitstillhasreferencevalue.Butthecodewritingismoreimportantsenseintheprojectgroupm
2、embersoftheincrease,accordingtotheprojectsofar,thisimplementationissimpleandstandardizedisnotoptimistic,therearestillallkindsofdifferentgenresofstyleinthecode,thesystemsoftwareprojectmanagementisnotperfectduetothis,donotstudythisproblem.Chapterone:namingnormsofsubjectFirst,
3、plug-inservicenamingspecification1)namingserviceitemsAllservicenamesstartwithESrv(notetosize),andfifthlettersbegintocustomizemeaning,butthefifthbitlettersmustbecapitalized.Forexample,ESrvDemo1,whereDemo1isacustomname.Two,classmemberaccessauthorityspecificationAllclassmember
4、sstrictlysettheiraccessmodifiersinaccordancewiththenatureofthemembers,andthemeaningofthemodifierisasfollows:DeclarativeaccessibilitySignificancePublicAccessunrestricted.ProtectedAccessisrestrictedtoclassesthatcontainorderivefromthecontainingclass.InternalAccessislimitedtocu
5、rrentassemblies.ProtectedinternalAccessislimitedtocurrentassembliesortypesderivedfromincludedclasses.PrivateAccessisrestrictedtoinclusiontypes.ThesecondchaptercodewritingstandardCodeannotationspecification1)annotationof.CsfilesAll.Csfilesshouldbeannotatedatthebeginning,stat
6、ingthecreationtimeofthefile,theauthor,theuseofthesummary,etc.Formatisasfollows://********************************************************//adddate:2004.7.19//Author:XXXHeat//?Ma:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX?//********************************************************2)an
7、notationoffunctionprocessAllfunctionsbeginwithannotations,sotheannotationusesthe.NETannotationspecification,asfollows:///Publicconstructor//////sampleparameters1///sampleparameters2PublicUpgradeThr
8、ead(stringis_xxx1,stringis_xxx2){//...}3)constantvariableannotationsAlloftheconsta