CodeExplorer Posted September 21, 2014 Posted September 21, 2014 How do I set a method as a setter using Dnlib?setm.IsSetter = true; // set the method as setter (using Mono.Cecil)Mono.Cecil declaration on MethodDefinition:public bool get_IsSetter(){ return this.GetSemantics((MethodSemanticsAttributes.None | MethodSemanticsAttributes.Setter));}Where are these on Dnlib?
CodeExplorer Posted September 21, 2014 Author Posted September 21, 2014 Oho! After checking it seems dnlib automatically adds MethodSemantics table!So problem is solved! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now