Runtime type identification made easy! Read on how new ‘dynamic’ type helps. Let us look at the problems in versions prior to 4.0. A lot of times, we create programs that act on information unaware of its type until at runtime. A type-safe programming language like C# works with runtime-determined information during reflection and has to work a lot with strings which looks clumsy and cause performance problems as shown in the below example. class Program { public class MyType { public string MyProperty { get; set; } } static void Main( string [] args) { var myType = new MyType(); var property = typeof(MyTestType).GetProperty("MyPro...
C#, OOPS, MVC, WCF, Architecture, SQL, Table, Triggers, Script and SQL Server