我有一个动态对象(C# 4.0),我想动态设置一个属性的枚举值,但我没有该类型的程序集引用。关于如何做到这一点的任何想法/是否可以做到这一点?
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?