void AddType(InstructionOperandVM opvm) { var picker = new DnlibTypePicker(Window.GetWindow(listBox)); object op = opvm.Other as ITypeDefOrRef ?? (object)cilBodyVM.TypeSigCreatorOptions.OwnerType; if (picker.GetDnlibType(dnSpy_AsmEditor_Resources.Pick_Type, new FlagsDocumentTreeNodeFilter(VisibleMembersFlags.TypeDef), op, cilBodyVM.OwnerModule) is ITypeDefOrRef type) { opvm.Other = type; } }
void AddType(InstructionOperandVM opvm) { var picker = new DnlibTypePicker(Window.GetWindow(listBox)); var type = picker.GetDnlibType(new FlagsTreeViewNodeFilter(VisibleMembersFlags.TypeDef), opvm.Other as ITypeDefOrRef, cilBodyVM.OwnerModule); if (type != null) { opvm.Other = type; } }
void AddMethodDef(InstructionOperandVM opvm) { var picker = new DnlibTypePicker(Window.GetWindow(listBox)); var method = picker.GetDnlibType(new FlagsTreeViewNodeFilter(VisibleMembersFlags.MethodDef), opvm.Other as IMethod, cilBodyVM.OwnerModule); if (method != null) { opvm.Other = method; } }
void AddType(InstructionOperandVM opvm) { var picker = new DnlibTypePicker(Window.GetWindow(listBox)); var type = picker.GetDnlibType(dnSpy_AsmEditor_Resources.Pick_Type, new FlagsFileTreeNodeFilter(VisibleMembersFlags.TypeDef), opvm.Other as ITypeDefOrRef, cilBodyVM.OwnerModule); if (type != null) { opvm.Other = type; } }
void AddMethodDef(InstructionOperandVM opvm) { var picker = new DnlibTypePicker(Window.GetWindow(listBox)); var method = picker.GetDnlibType(dnSpy_AsmEditor_Resources.Pick_Method, new FlagsFileTreeNodeFilter(VisibleMembersFlags.MethodDef), opvm.Other as IMethod, cilBodyVM.OwnerModule); if (method != null) { opvm.Other = method; } }
void AddMethodDef(InstructionOperandVM opvm) { var picker = new DnlibTypePicker(Window.GetWindow(listBox)); object op = opvm.Other as IMethod ?? (object)cilBodyVM.TypeSigCreatorOptions.OwnerType; var method = picker.GetDnlibType(dnSpy_AsmEditor_Resources.Pick_Method, new FlagsDocumentTreeNodeFilter(VisibleMembersFlags.MethodDef), op, cilBodyVM.OwnerModule) as IMethod; if (method != null) { opvm.Other = method; } }