The Implicitly Type local variable being declared is inferred from the expression used to initialize variable.
E.g : var i =10;
var s="anish";
Note : it can be a anonymous type ,user defined type or FCL(frame work class library) type etc.But the compiler determines the type.
E.g: var i =10//implicitly typed
int i=10//Explicitly typed
Records and the ‘with’ operator, redux
1 week ago
0 comments:
Post a Comment