Hi, I am trying to replace all types in an Assembly with my own type that inherits that type.
To do this I think I need to replace all field initializers and new instance initializers in methods. The methods part I can handle but the field initializers I’m not sure about…They have a value called InitialValue which has a byte array, but I’m not sure how to use this to replace the initializer with a constructor for my new type. So basically I need to replace: private SomeType someTypeInstance = new SomeType(); with private SomeType someTypeInstance = new MyTypeThatInheritsSomeType(); Do you have any suggestions on how to do this? Thanks very much. Jeff -- -- mono-cecil
