we read in msdn we "Adding new dynamic properties" by using DynamicObject Class i write a following program
public class DemoDynamicObject : DynamicObject
{
}
class Program
{
public static void Main()
{
dynamic dd = new DemoDynamicObject();
dd.FirstName = "abc";
}
}
But when i run this program it gives runtime error :'DemoDynamicObject' does not contain a definition for 'FirstName' if we adding dynamic property by using DynamicObject Class then why it can give this error can anyone tell me reason and solution?