[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685664-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-685664-en":130,"doc-similar-685664":149},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","general-c-cheat-sheet-quick-reference-guide","General C# Cheat Sheet - Quick reference guide","","General C# Cheat Sheet provides a compact, sectioned reference for core language elements and common coding patterns. It summarizes key data types (byte, int, float, char, bool, string), basic type conversion methods, naming conventions for classes/methods/variables/constants, and major control statements such as if-else, switch, loops, and try-catch-finally. It also includes array initialization and multidimensional arrays, list operations, class and inheritance concepts, constructors/destructor, method invocation, and access/other modifiers (public, private, protected, abstract, async, const).",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/general-c-cheat-sheet-quick-reference-guide/685664/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/general-c-cheat-sheet-quick-reference-guide/685664.png","ImageObject",300,407,{"name":42,"@type":43},"Marglet","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-18","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What basic C# data types are covered in the cheat sheet?","Question",{"text":62,"@type":63},"It lists byte, int, float, char, bool, and string, along with brief ranges or descriptions for each.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Which statement types does the cheat sheet summarize?",{"text":67,"@type":63},"It covers if-else, switch, for, foreach, while, do-while, and try-catch-finally.",{"name":69,"@type":60,"acceptedAnswer":70},"What does it include for arrays and collections?",{"text":71,"@type":63},"It shows array initialization (including 2D/3D forms), GetLength usage, and List\u003CT> operations like Count, Add, Clear, Contains, Equals, IndexOf, and Remove.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},685664,1794016366,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":101,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":143,"preview_page_count":22,"preview_urls":144},2336477982702,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","General C\\# Cheat Sheet  \n[by](by Veyleria via cheatography.com/99177/cs/21007/)[ Veyleria](by Veyleria via cheatography.com/99177/cs/21007/)[ via](by Veyleria via cheatography.com/99177/cs/21007/)[ cheatography.com/99177/cs/21007/](by Veyleria via cheatography.com/99177/cs/21007/)  \nData Types  \n| byte | 8-bit unsigned integer | 0 to 255 | byte value = 255; |\n| --- | --- | --- | --- |\n| int | 32-bit signed integer | -2 , 147 ,483 ,648 to 2 , 147 ,483 ,647 | int value = 3 ; |\n| float | 32-bit Single-precision floating point type | -3.402823e38 to 3.402823e38 | float value = 6 .3F; |\n| char | 16-bit single Unicode character | Any valid character, e.g. a ,* , \\x0058 (hex) , or\\u0058 (Unicode) | char value = 'H ' ; |\n| bool | 8-bit logical true/false value | True or false. | bool value = true; |\n| string | A sequence of Unicode characters | Combination of characters. | string value = \" Hel lo\" ; |\n\nType Conversion Methods  \nConver t.T oBo ole an ( var iable);  \nConver t.T oBy te ( var iable);  \nConver t .T oCh ar ( var iable);  \nConver t.T oDa teT ime (va ria ble);  \nConver t .T oIn t32 (va ria ble);  \nConver t .T oSt rin g (v ari able ( ;  \nNaming Convensions  \n| Class | MyClass |\n| --- | --- |\n| Method | MyMethod |\n| Local variable | myLocalVariable |\n| Private variable | _myPrivateVariable |\n| Constant | MyConstant |\n\nStatements  \n| if-else | if (true) {   } else if (true) {   } else {   } |\n| --- | --- |\n| switch | switch (var) { case 1 : break; default : break; } |\n| for | for (int i = 1 ; i \u003C 5 ; i++) {   } |\n| foreach | foreach (int item in array) { . . . } |\n| while | while (true) {   } |\n| do-while | do {   } while (true); |\n| try-catch-finally | try { . . . } catch (Exception e) { . . . } catch { . . . } finally { . . . } |\n\nBy Veyleria  \n[cheatography.com/veyleria/](cheatography.com/veyleria/)  \nNot published yet.  \nLast updated 3rd November, 2019. Page 1 of 6.  \nSponsored by Readable.com Measure your website readability!  \n[https://readable.com](https://readable.com)  \nGeneral C\\# Cheat Sheet  \n[by](by Veyleria via cheatography.com/99177/cs/21007/)[ Veyleria](by Veyleria via cheatography.com/99177/cs/21007/)[ via](by Veyleria via cheatography.com/99177/cs/21007/)[ cheatography.com/99177/cs/21007/](by Veyleria via cheatography.com/99177/cs/21007/)  \nArrays and Methods  \nint [] array = new int [] { 1 , 2 , 3 } ;  \nint [] array = { 1 , 2 , 3 } ;  \nvar array = new int [] { 1 , 2 , 3 } ;  \nint [] array = new int [3];  \nint [,] array2D = new int [,] { { 1 , 2 } , { 3 , 4 } , { 5 , 6 } , { 7 , 8 } } ;  \nint [,] array2Da = new int [ 4 , 2] { { 1 , 2 } , { 3 , 4 } , { 5 , 6 } , { 7 , 8 } } ;  \nint [, ,] array3D = new int [,,] { { { 1 , 2 , 3 } , { 4 , 5 , 6 } } , { { 7 , 8 , 9 } , { 10, 11, 12 } } } ;  \nint [, ,] array3Da = new int [2, 2 , 3] { { { 1 , 2 , 3 } , { 4 , 5 , 6 } } , { { 7 , 8 , 9 } , { 10, 11, 12 } } } ;  \narray .G et Len gth (int32)  \nClasses  \n| Class | public class Animal { . . . } | Makes a new class named Animal. |\n| --- | --- | --- |\n| Inheritance | public class Dog :Animal { . . . } | Inherits from a class. Example every animal has a size , but not every animal is the same size. |\n| Constructor (no parameters) | public Dog () { . . . } | Method in a class that activates when the class is instanciated. |\n| Constructor (one parameter) | public Dog (string var) { . . . } | Method in a class that activates when the class is instanciated with\u003Cbr>parameters. |\n| Deconstructor (cannot have parameters) | ~Dog () { . . . } | Method in a class that activates when the class is destroyed. |\n| Call method | Method Name (); | Calls a custom or already existing method. |\n\nBy Veyleria  \n[cheatography.com/veyleria/](cheatography.com/veyleria/)  \nNot published yet.  \nLast updated 3rd November, 2019. Page 2 of 6.  \nSponsored by Readable.com Measure your website readability!  \n[https://readable.com](https://readable.com)  \nGeneral C\\# Cheat Sheet  \n[by](by Veyleria via cheatography.com/99177/cs/21007/)[ Veyleria](by Veyleria ","cbCaicc5aOC3brwm","https://ap.wps.com/l/cbCaicc5aOC3brwm","pdf",76942,"English","# Data Types\n## Type Conversion Methods\n# Naming Conventions\n# Statements\n# Arrays and Methods\n# Classes\n# Lists and Methods\n# Access Modifiers\n# Other Modifiers","[{\"question\":\"What basic C# data types are covered in the cheat sheet?\",\"answer\":\"It lists byte, int, float, char, bool, and string, along with brief ranges or descriptions for each.\"},{\"question\":\"Which statement types does the cheat sheet summarize?\",\"answer\":\"It covers if-else, switch, for, foreach, while, do-while, and try-catch-finally.\"},{\"question\":\"What does it include for arrays and collections?\",\"answer\":\"It shows array initialization (including 2D/3D forms), GetLength usage, and List\\u003cT\\u003e operations like Count, Add, Clear, Contains, Equals, IndexOf, and Remove.\"}]","General C# Cheat Sheet - Quick reference guide | PDF",15,[145],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c9210c8a3a9e661201bfbef3a637bf3b.webp",983,1391,{"list":150,"token":11},[151,157,164,171,178,185,192,199,206,213],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":33,"category_name":29,"create_tm":156},689117,"Basic Python Syntax","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001514097/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=1bT69wHv1fhu27YFa5H0Bdj8g50%3D","basic-python-syntax",1794096795,{"doc_id":158,"doc_title":159,"file_type":137,"home_preview_img_url":160,"slug":161,"view_count":162,"category_name":29,"create_tm":163},347826,"Advanced java - Part 1 - How to create and destroy objects","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911558162/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Q2atW2%2Ba0INZjyuxOo2Qs5ykj0I%3D","advanced-java-part-1-how-to-create-and-destroy-objects",14,1790069260,{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":29,"create_tm":170},423014,"THE JAVA LANGUAGE CHEAT SHEET - quick reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922611453/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=9a4xUHYzpnePb62zGtUu01Di7L0%3D","the-java-language-cheat-sheet-quick-reference",13,1790629749,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":29,"create_tm":177},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=BPlGsUasZSUV01Vf6BCf0ZcLvtQ%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":29,"create_tm":184},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=TNqnSluMI0go%2FLoLihaswrEB4ew%3D","xnx-universal-transmitter-installation-manual",854,1776135954,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":29,"create_tm":191},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=L94ru21zBnAKOnbf1LCkUIeNKGY%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":29,"create_tm":198},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Mn%2Bw4qcC4jQ1ia2cgAzpzmob7%2Bc%3D","free-fire-proxy-server",565,1776135932,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":29,"create_tm":205},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=bO1NLL8CWyXTE48dcYwlGBuTgtM%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":29,"create_tm":212},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=MW5bdD45G78SZPQ8KkSPsRJL%2BzY%3D","tiktok-content-tricks-from-0-to-fyp",489,1776338393,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":29,"create_tm":219},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Lwufb5dlxO%2BLvWR0TNJnRIJeulA%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169]