I want to generate such code by codedom, like this
public class Class1
{
private dynamic mDynamicObject;
public dynamic DynamicObject
{
get { return mDynamicObject; }
set { mDynamicObject = value; }
}
}
And i want to use codedom of CodeMemberField to declare the “mDynamicObject”, but the type of dynamic i don’t know how to declare this type.
1 Answer