CodeExplorer Posted September 21, 2014 Share 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? Link to comment
CodeExplorer Posted September 21, 2014 Author Share Posted September 21, 2014 Oho! After checking it seems dnlib automatically adds MethodSemantics table!So problem is solved! 1 Link to comment
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