Please enable JavaScript.
Coggle requires JavaScript to display documents.
C# (Versions (3 (Object and colll init new List<int> { 0, 1, 2, 3,…
C#
Versions
3
Object and colll init
new List<int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
new Cat (){a=1,b=2}
Implicity typing = VAR
Anonymouse types (var a = new {a=1, b=2}
Automatic propetries
Lambda expressions (Action, Funct<Targ...TResult> delegates)
Extension methods
public static int WordCount(this String str)
Query expressions
4
Dynamic typing
Named and default arguments
CalculateBMI(weight: 123, height: 64);
Generic variance
2
Generics
Nullable Types
Anonymouse methods (replaced by lambdas)
Literator blocks (
"")
Covariance and Contravariance
Co - Base a = Derived b
Cont - Derived b = Base a
5
async functions
Caller info attributes
Foreach interaction variable tweak
1
Delegates, Events
pass arguments as out/ref
yield return (IEnumerator<T>
Class , Interface, Enum, Struct
multy-interface inheritance, abstract classes, virtual methods,
Inheritance
for,foreach, while, if else switch case
Reflection
Type type = (object).GetType();
type.IsGenericType
type == typeOf(ClassName)
GetGenericTypeDefinition
Tooling
COdeAnalysis
Debug
CodeEfitor
Performance
DataTypes
Value
bool,
sbyte, byte,
short,ushort, char
int,uint, float
double,
decimal
Enumerations
,
Struct
Nullable
- int? - hasValue, value
Reference
Class,
Interdace,
Delegate,
Arrays
Object,
String
(pointer)
Languagage - C#
std libs
Frameworks