The
dynamic type uses System.Object indirectly but it does not require explicit
type casting for any operation at runtime, because it identifies the types at
runtime only. No need to initialize at the time of declaration.
Eg :
dynamic Str;
Str= “I am a string”; //Works fine and
compiles
Str=2 // works fine and compiles
No comments:
Post a Comment