public PInvokeImplementation(MetaDataMember member, PInvokeImplAttributes attributes, ModuleReference moduleRef, string entrypoint) : base(new MetaDataRow((uint)attributes, (uint) 0, (uint) 0, moduleRef.TableIndex)) { this._member = member; this._importScope = moduleRef; this._entrypoint = entrypoint; }
public PInvokeImplementation(MetaDataMember member, PInvokeImplAttributes attributes, ModuleReference moduleRef, string entrypoint) : base(new MetaDataRow((uint)attributes, (uint)0, (uint)0, moduleRef.TableIndex)) { this._member = member; this._importScope = moduleRef; this._entrypoint = entrypoint; }
public MethodImplementation(TypeDefinition @class, MethodReference methodDeclaration, MethodReference newMethod) : base(new MetaDataRow(@class.TableIndex, 0U, newMethod.TableIndex)) { this.@class = @class; this.methodDeclaration = methodDeclaration; this.methodBody = newMethod; }
internal bool TryGetMember(int token, out MetaDataMember member) { try { member = GetMember(token); return true; } catch { member = null; return false; } }
public override void ClearCache() { if (_stream != null) { _stream.Dispose(); } _stream = null; _name = null; _implementation = null; }
public override void ClearCache() { if (stream != null) { stream.Dispose(); } stream = null; name = null; implementation = null; }
private TreeNode CreateTreeNode(MetaDataMember member) { TreeNode node = new TreeNode(); try { node.Text = index + (member is MemberReference ? " (" + (member as MemberReference).Name + ")" : ""); } catch { node.Text = index.ToString(); } index++; node.Tag = member; return node; }
public override void ClearCache() { parent = null; }
public override void LoadCache() { _method = Method; _association = Association; }
public MethodSemantics(MethodDefinition method, MetaDataMember association, MethodSemanticsAttributes attributes) : base(new MetaDataRow((uint)attributes, method.TableIndex, (uint)0)) { this._method = method; this._association = association; }
public FieldMarshal(MetaDataMember parent, uint nativeType) : base(new MetaDataRow((uint)0, nativeType)) { this._parent = parent; }
public override void LoadCache() { _member = Member; _entrypoint = Entrypoint; _importScope = ImportScope; }
public override void LoadCache() { _member = Member; _entrypoint = Entrypoint; _importScope = ImportScope; }
public override void ClearCache() { parent = null; constructor = null; signature = null; }
public override void LoadCache() { _stream = Stream; _name = Name; _implementation = Implementation; }
public override void ClearCache() { value = null; parent = null; }
public Constant(MetaDataMember parent, ElementType type, uint signature) : base(new MetaDataRow((byte)type, 0U, signature)) { }
public override void LoadCache() { _method = Method; _association = Association; }
public override void ClearCache() { _method = null; _association = null; }
public MethodSemantics(MethodDefinition method, MetaDataMember association, MethodSemanticsAttributes attributes) : base(new MetaDataRow((uint)attributes, method.TableIndex, (uint) 0)) { this._method = method; this._association = association; }
public override void LoadCache() { _parent = Parent; _constructor = Constructor; _signature = Signature; }
public override void ClearCache() { @class = null; methodBody = null; methodDeclaration = null; }
public Constant(MetaDataMember parent, ElementType type, uint signature) : base(new MetaDataRow((byte)type, 0U, signature)) { }
public override void LoadCache() { _value = Value; _parent = Parent; }
public override void ClearCache() { parent = null; }
public override void LoadCache() { _implementation = Implementation; }
public override void LoadCache() { _stream = Stream; _name = Name; _implementation = Implementation; }
public override void LoadCache() { _parent = Parent; }
public override void ClearCache() { _implementation = null; }
public override void LoadCache() { _value = Value; _parent = Parent; }
private void tablesTree_AfterSelect(object sender, TreeViewEventArgs e) { dataGridView.Rows.Clear(); if (tablesTree.SelectedNode.Tag != null) { currentMember = (MetaDataMember)tablesTree.SelectedNode.Tag; propertyGrid.SelectedObject = currentMember; SetMetaDataRow(currentMember.MetaDataRow); } }
public override void ClearCache() { if (_stream != null) _stream.Dispose(); _stream = null; _name = null; _implementation = null; }
private TreeNode CreateTreeNode(MetaDataMember member) { TreeNode node = new TreeNode(); uint index = (member.MetaDataToken | ((uint)0xFF << 24)) - ((uint)0xFF << 24); try { node.Text = string.Format("{0} ({1})", index, (member is MemberReference ? (member as MemberReference).Name : member.ToString())); } catch { node.Text = index.ToString(); } index++; node.Tag = member; return node; }
public ManifestResource(string name, ManifestResourceAttributes attributes, MetaDataMember implementation, uint offset) : base(new MetaDataRow(offset, (uint)attributes, 0U, 0U)) { this._name = name; this._implementation = implementation; }
private void tablesTree_AfterSelect(object sender, TreeViewEventArgs e) { dataGridView.Rows.Clear(); if (e.Node.Tag is MetaDataTable) { MetaDataTable table = e.Node.Tag as MetaDataTable; if (e.Node.Nodes.Count == 1 && e.Node.Nodes[0].Text == "Loading...") { e.Node.Nodes.Clear(); TreeNode[] subNodes = new TreeNode[table.Members.Count]; for (int i = 0; i < subNodes.Length; i++) subNodes[i] = CreateTreeNode(table.Members[i]); tablesTree.BeginUpdate(); e.Node.Nodes.AddRange(subNodes); tablesTree.EndUpdate(); } } else if (e.Node.Tag is MetaDataMember) { currentMember = (MetaDataMember)e.Node.Tag; propertyGrid.SelectedObject = currentMember; SetMetaDataRow(currentMember.MetaDataRow); } }
public override void LoadCache() { _implementation = Implementation; }
public override void ClearCache() { member = null; entrypoint = null; importScope = null; }
public override void ClearCache() { _method = null; _association = null; }
public FieldMarshal(MetaDataMember parent, uint nativeType) : base(new MetaDataRow((uint) 0, nativeType)) { this.parent = parent; }
public SecurityDeclaration(SecurityAction Action, MetaDataMember parent, uint permissionSet) : base(new MetaDataRow((ushort)Action, 0U, permissionSet)) { }
public CustomAttribute(MetaDataMember parent, MethodReference constructor, uint value) : base(new MetaDataRow(0U,0U, value)) { this._parent = parent; this._constructor = constructor; }
public ManifestResource(string name, ManifestResourceAttributes attributes, MetaDataMember implementation, uint offset) : base(new MetaDataRow(offset, (uint)attributes, 0U, 0U)) { this.name = name; this.implementation = implementation; }
public override void ClearCache() { _parent = null; _constructor = null; _signature = null; }
public override void LoadCache() { _parent = Parent; _constructor = Constructor; _signature = Signature; }
public SecurityDeclaration(SecurityAction Action, MetaDataMember parent, uint permissionSet) : base(new MetaDataRow((ushort)Action, 0U, permissionSet)) { }
public CustomAttribute(MetaDataMember parent, MethodReference constructor, uint value) : base(new MetaDataRow(0U, 0U, value)) { this.parent = parent; this.constructor = constructor; }
public override void LoadCache() { _parent = Parent; }
public override void ClearCache() { value = null; parent = null; }
private ValueType GetMemberIndex(Workspace workspace, MetaDataMember member) { if (member.Table.IsLarge(0)) return member.TableIndex; return (ushort)member.TableIndex; }
public override void ClearCache() { _member = null; _entrypoint = null; _importScope = null; }
private ValueType GetMemberIndex(Workspace workspace, MetaDataTableGroup group, MetaDataMember member) { if (group.IsLarge) return group.GetCodedIndex(member); return (ushort)group.GetCodedIndex(member); }
public override void ClearCache() { _implementation = null; }
public override void ClearCache() { resolutionScope = null; name = null; @namespace = null; }
public override void ClearCache() { if (stream != null) stream.Dispose(); stream = null; name = null; implementation = null; }
public GenericParameter(string name, ushort index, GenericParameterAttributes attributes, MetaDataMember owner) : base(new MetaDataRow(index, (ushort)attributes, 0U, 0U)) { this.name = name; this.owner = owner; }