There is no Clone() method if that's what you're asking. You can effectively copy a MethodDefinition (or any other *Definition for that matter) by creating a new object instance, and setting the new object's properties to the same values as the original object. In case of a MethodDefinition, this involves the method name, return type, declaring type, parameters, generic parameters, HasThis, ExplicitThis, etc.
2011/7/15 Greg Young <[email protected]> > Is there a quick and easy way to copy a MethodDefinition? > > -- > Le doute n'est pas une condition agréable, mais la certitude est absurde. > > -- > -- > mono-cecil -- -- mono-cecil
