I have a dynamic object (C# 4.0), In that i want to set an Enum value for a property dynamically, But i do not have an assembly reference for that type. Any idea on how to do this / is it possible to do this ?
dynamic vehicle = myObject;
vehicle.AddTires(); // working
vehicle.ConfigureEngine(); //working
vehicle.seat="Leather";//working
//Enum needs to be set for the Make
vehicle.Make = Manufacturer.Toyota; // how to do this?