0% found this document useful (0 votes)
57 views1 page

DotNet CheatSheet

.NET Quick Cheat Sheet covers essential aspects of the .NET Framework, including CLR, BCL, and supported languages. It outlines key programming concepts such as OOP principles, data types, database connectivity, and ASP.NET web development. Additionally, it provides examples of exception handling and database operations like stored procedures and indexing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

DotNet CheatSheet

.NET Quick Cheat Sheet covers essential aspects of the .NET Framework, including CLR, BCL, and supported languages. It outlines key programming concepts such as OOP principles, data types, database connectivity, and ASP.NET web development. Additionally, it provides examples of exception handling and database operations like stored procedures and indexing.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

.

NET Quick Cheat Sheet

1. .NET Framework & Class Library


- .NET Framework provides CLR (Common Language Runtime) & BCL (Base Class Library).
- Languages: C#, VB.NET, F#.
- Assemblies: DLL & EXE files in .NET.
2. Syntax & Data Types
- Value Types (int, double, bool) stored in Stack.
- Reference Types (object, string, array) stored in Heap.
- Nullable Types: int? num = null;
3. OOP Concepts
- Encapsulation: Use private fields with public properties.
- Inheritance: One class acquires properties of another.
- Polymorphism: Method Overriding with 'virtual' & 'override'.
- Abstraction: Use 'abstract' or 'interface'.
4. Arrays & Strings
- Arrays: int[] arr = {1,2,3};
- String Methods: ToUpper(), ToLower(), Substring(), Split(), Replace().
5. Database Connectivity (ADO.NET)
- SqlConnection, SqlCommand, SqlDataReader for database operations.
- DML: SELECT, INSERT, UPDATE, DELETE.
- Joins: INNER JOIN, LEFT JOIN, RIGHT JOIN.
6. ASP.NET Web Development
- Web Forms use .aspx pages.
- State Management: ViewState, Session, Cookies.
7. Exception Handling
try { int x = 10 / 0; }
catch (DivideByZeroException ex) { Console.WriteLine(ex.Message); }
8. Stored Procedures & Indexing
- Stored Procedure: CREATE PROCEDURE GetUsers AS SELECT * FROM Users;
- Indexing: CREATE INDEX idx_name ON Users(Name);

You might also like