Please enable JavaScript.
Coggle requires JavaScript to display documents.
.Net - Coggle Diagram
.Net
Fundamentals
-
-
-
IL is also known as Microsoft Intermediate Language (MSIL) or alternatively as the Common Intermediate language (CIL). Thus, as you read the .NET literature, understand that IL, MSIL, and CIL are all describing essentially the same concept. conceptually similar to java bytecode
-
MSIL contain code + metadata + manifest - metadata is used in late binding, reflection etc. manifest contains info like required external lib, version number etc.
C#.Net
Types
Base type of all types is System.Object
Literals are typed, hence can call methods on literals as well
-
-
-
-
Record (C#9)
- immutable, deconstructor, fancy class with lots of auto generated hidden code. code efficient, easy to create modified copy, thread safe.
- Use case - 1.capturing external immutable data, 2. API calls
- dont use in entity framework
Delegates - type safe function pointers like in C, derives from System.MulticastDelegate, used for callbacks
Literals - Decimals - d,f,m.
hexa, octa same
digit separator is underscore
Keywords
Access Modifiers
public, private, protected
Type
abstract, static, virtual, sealed
-
Features
-
-
-
-
-
-
C#6 - Null operator, String Interpolation, async, await
C#7 - Nested function, out, tuple, ref, discard, default
-
Attributes - same as annotations in java, use [ AttributeName ]
but the target can be anything like assembly, method, class,
even parameters, return value etc.
-
-
-
ASP.NET 3.1
Important classes
MVC
Controller, ControllerBase (for web api)
DBContext, IdentityDbContext
UserManager<>, SignInManager<>
-
-