資源描述:
《[C#4.0袖珍參考手冊(第3版)].(C#.4.0.Pocket.Reference).Joseph.Albahari&Ben.Albahari.文字版》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。
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