public EditedMethodBody(MethodDef originalMethod, Emit.MethodBody newBody, MethodImplAttributes implAttributes, CustomAttribute[] customAttributes) { OriginalMethod = originalMethod; NewBody = newBody; ImplAttributes = implAttributes; CustomAttributes = customAttributes; }
public BodyState(Emit.MethodBody body, MethodImplAttributes implAttributes, CustomAttribute[] customAttributes, bool isBodyModified) { this.body = body; this.implAttributes = implAttributes; this.customAttributes = customAttributes; this.isBodyModified = isBodyModified; }
public BodyState(MethodDef method, bool isBodyModified) { this.body = method.MethodBody; this.implAttributes = method.ImplAttributes; this.customAttributes = method.CustomAttributes.ToArray(); this.isBodyModified = isBodyModified; }
public EditedMethodBodyUpdater(Lazy <IMethodAnnotations> methodAnnotations, ModuleDocumentNode modNode, MethodDef originalMethod, Emit.MethodBody newBody, MethodImplAttributes newImplAttributes, CustomAttribute[] newCustomAttributes, DeclSecurity[] newDeclSecurities) { this.methodAnnotations = methodAnnotations; this.ownerNode = modNode.Context.DocumentTreeView.FindNode(originalMethod); if (ownerNode == null) { throw new InvalidOperationException(); } this.method = originalMethod; this.originalBodyState = new BodyState(originalMethod, methodAnnotations.Value.IsBodyModified(method)); this.newBodyState = new BodyState(newBody, newImplAttributes, newCustomAttributes, newDeclSecurities, true); }
public BodyState(MethodDef method, bool isBodyModified) { this.body = method.MethodBody; this.implAttributes = method.ImplAttributes; this.isBodyModified = isBodyModified; }
public EditedMethodUpdater(Lazy <IMethodAnnotations> methodAnnotations, ModuleDocumentNode modNode, MethodDef originalMethod, Emit.MethodBody newBody, MethodDefOptions methodDefOptions) { this.methodAnnotations = methodAnnotations; this.ownerNode = modNode.Context.DocumentTreeView.FindNode(originalMethod); if (ownerNode == null) { throw new InvalidOperationException(); } this.method = originalMethod; this.originalMethodState = new MethodState(originalMethod, methodAnnotations.Value.IsBodyModified(method)); this.newMethodState = new MethodState(newBody, methodDefOptions, true); }
public MethodState(Emit.MethodBody body, MethodDefOptions methodDefOptions, bool isBodyModified) { this.body = body; this.methodDefOptions = methodDefOptions; this.isBodyModified = isBodyModified; }
public MethodState(MethodDef method, bool isBodyModified) { this.body = method.MethodBody; this.methodDefOptions = new MethodDefOptions(method); this.isBodyModified = isBodyModified; }
public EditedMethod(MethodDef originalMethod, Emit.MethodBody newBody, MethodDefOptions methodDefOptions) { OriginalMethod = originalMethod; NewBody = newBody; MethodDefOptions = methodDefOptions; }
public MethodState(Emit.MethodBody body, MethodDefOptions methodDefOptions, bool isBodyModified) { this.body = body; this.methodDefOptions = methodDefOptions; this.isBodyModified = isBodyModified; }
public MethodState(MethodDef method, bool isBodyModified) { body = method.MethodBody; methodDefOptions = new MethodDefOptions(method); this.isBodyModified = isBodyModified; }
MethodBodySettingsCommand(MethodTreeNode methodNode, MethodBodyOptions options) { this.methodNode = methodNode; this.newOptions = options; this.origMethodBody = methodNode.MethodDefinition.MethodBody; }
MethodBodySettingsCommand(MethodTreeNode methodNode, MethodBodyOptions options) { this.methodNode = methodNode; this.newOptions = options; this.origMethodBody = methodNode.MethodDefinition.MethodBody; }