This is the latest feature of .NET 4.0 and used to replace other types such as int, bool or string. it functions like it has type object. At compile time, an element that is typed as dynamic is assumed to support any operation.
In the above webpage at the right side upper corner there is a search box. If you typed the subject you want and press GO button you will find out the subject in detail you want.
Anupam SinghPosted Oct 28, 2014, 12:35 AM
// declaration and initialization
object obj="anupam";
dynamic dyn="anupam";
// now if you want to use it
// with object you have to cast it as string
Console.WriteLine((string)obj); // will check type on compile time.
// with dynamic type
Console.WriteLine(dyn); // will check everything on run time.
Arunava BhattacharjeePosted Oct 27, 2014, 11:36 PM
Read this article. It will clear all your doubts regarding dynamic .
Ajay YadavPosted Oct 27, 2014, 10:10 PM
MahaPosted Oct 27, 2014, 2:37 PM
In the above webpage at the right side upper corner there is a search box. If you typed the subject you want and press GO button you will find out the subject in detail you want.