资源描述:
《[C#4.0袖珍参考手册(第3版)].(C#.4.0.Pocket.Reference).Joseph.Albahari&Ben.Albahari.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、C#4.0PocketReferenceTHIRDEDITIONC#4.0PocketReferenceJosephAlbahariandBenAlbahariBeijing•Cambridge•Farnham•Köln•Sebastopol•Taipei•TokyoC#4.0PocketReference,ThirdEditionbyJosephAlbahariandBenAlbahariCopyright©2010JosephAlbahariandBenAlbahari.Allrightsreserved.PrintedinCanada.Pu
2、blishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Se-bastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromo-tionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutio
3、nalsalesdepartment:(800)998-9938orcorporate@oreilly.com.Editor:MikeHendricksonProductionEditor:KristenBorgProofreader:KielVanHornIndexer:AngelaHowardCoverDesigner:KarenMontgomeryInteriorDesigner:DavidFutatoIllustrator:RobertRomanoPrintingHistory:November2002:FirstEdition.Febr
4、uary2008:SecondEdition.August2010:ThirdEdition.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.C#4.0PocketReference,theimageofanAfricancrownedcrane,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignations
5、usedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,th
6、epublisherandauthorsassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-1-449-39401-1[TM]1280502296ContentsC#4.0PocketReference1UsingCodeExamples2HowtoContactUs2Safari®BooksOnline3AFirstC#Program3Compilation6Synta
7、x7IdentifiersandKeywords7Literals,Punctuators,andOperators9Comments10TypeBasics10PredefinedTypeExamples10CustomTypeExamples11Conversions14ValueTypesVersusReferenceTypes15PredefinedTypeTaxonomy18NumericTypes19NumericLiterals20NumericConversions21ArithmeticOperators22Incrementa
8、ndDecrementOperators22SpecializedIntegralOperations22v8-and16-BitInt