Inheritance: IDisposable, ICacheProvider
Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 internal bool TryGetMember(int token, out MetaDataMember member)
 {
     try
     {
         member = GetMember(token);
         return true;
     }
     catch { member = null; return false; }
 }
Exemplo n.º 5
0
 public override void ClearCache()
 {
     if (_stream != null)
     {
         _stream.Dispose();
     }
     _stream         = null;
     _name           = null;
     _implementation = null;
 }
Exemplo n.º 6
0
 public override void ClearCache()
 {
     if (stream != null)
     {
         stream.Dispose();
     }
     stream         = null;
     name           = null;
     implementation = null;
 }
Exemplo n.º 7
0
        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;
 }
Exemplo n.º 9
0
 public override void LoadCache()
 {
     _method = Method;
     _association = Association;
 }
Exemplo n.º 10
0
 public MethodSemantics(MethodDefinition method, MetaDataMember association, MethodSemanticsAttributes attributes)
     : base(new MetaDataRow((uint)attributes, method.TableIndex, (uint)0))
 {
     this._method = method;
     this._association = association;
 }
Exemplo n.º 11
0
 public FieldMarshal(MetaDataMember parent, uint nativeType)
     : base(new MetaDataRow((uint)0, nativeType))
 {
     this._parent = parent;
 }
Exemplo n.º 12
0
 public override void LoadCache()
 {
     _member = Member;
     _entrypoint = Entrypoint;
     _importScope = ImportScope;
 }
Exemplo n.º 13
0
 public override void LoadCache()
 {
     _member      = Member;
     _entrypoint  = Entrypoint;
     _importScope = ImportScope;
 }
Exemplo n.º 14
0
 public override void ClearCache()
 {
     parent      = null;
     constructor = null;
     signature   = null;
 }
Exemplo n.º 15
0
 public override void LoadCache()
 {
     _stream         = Stream;
     _name           = Name;
     _implementation = Implementation;
 }
Exemplo n.º 16
0
 public override void ClearCache()
 {
     value  = null;
     parent = null;
 }
Exemplo n.º 17
0
 public Constant(MetaDataMember parent, ElementType type, uint signature)
     : base(new MetaDataRow((byte)type, 0U, signature))
 {
 }
Exemplo n.º 18
0
 public override void LoadCache()
 {
     _method      = Method;
     _association = Association;
 }
Exemplo n.º 19
0
 public override void ClearCache()
 {
     _method      = null;
     _association = null;
 }
Exemplo n.º 20
0
 public MethodSemantics(MethodDefinition method, MetaDataMember association, MethodSemanticsAttributes attributes)
     : base(new MetaDataRow((uint)attributes, method.TableIndex, (uint) 0))
 {
     this._method      = method;
     this._association = association;
 }
Exemplo n.º 21
0
 public override void LoadCache()
 {
     _parent      = Parent;
     _constructor = Constructor;
     _signature   = Signature;
 }
Exemplo n.º 22
0
 public override void ClearCache()
 {
     @class            = null;
     methodBody        = null;
     methodDeclaration = null;
 }
Exemplo n.º 23
0
 public Constant(MetaDataMember parent, ElementType type, uint signature)
     : base(new MetaDataRow((byte)type, 0U, signature))
 {
 }
Exemplo n.º 24
0
 public override void LoadCache()
 {
     _value  = Value;
     _parent = Parent;
 }
Exemplo n.º 25
0
 public override void ClearCache()
 {
     parent = null;
 }
Exemplo n.º 26
0
 public override void LoadCache()
 {
     _implementation = Implementation;
 }
Exemplo n.º 27
0
 public override void LoadCache()
 {
     _stream = Stream;
     _name = Name;
     _implementation = Implementation;
 }
Exemplo n.º 28
0
 public override void LoadCache()
 {
     _parent = Parent;
 }
Exemplo n.º 29
0
 public override void ClearCache()
 {
     _implementation = null;
 }
Exemplo n.º 30
0
 public override void LoadCache()
 {
     _value = Value;
     _parent = Parent;
 }
Exemplo n.º 31
0
 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);
     }
 }
Exemplo n.º 32
0
 public override void ClearCache()
 {
     if (_stream != null)
         _stream.Dispose();
     _stream = null;
     _name = null;
     _implementation = null;
 }
Exemplo n.º 33
0
 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;
 }
Exemplo n.º 34
0
 public ManifestResource(string name, ManifestResourceAttributes attributes, MetaDataMember implementation, uint offset)
     : base(new MetaDataRow(offset, (uint)attributes, 0U, 0U))
 {
     this._name = name;
     this._implementation = implementation;
 }
Exemplo n.º 35
0
        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);
            }
        }
Exemplo n.º 36
0
 public override void LoadCache()
 {
     _implementation = Implementation;
 }
Exemplo n.º 37
0
 public override void ClearCache()
 {
     member = null;
     entrypoint = null;
     importScope = null;
 }
Exemplo n.º 38
0
 public override void ClearCache()
 {
     _method = null;
     _association = null;
 }
Exemplo n.º 39
0
 public FieldMarshal(MetaDataMember parent, uint nativeType)
     : base(new MetaDataRow((uint) 0, nativeType))
 {
     this.parent = parent;
 }
Exemplo n.º 40
0
 public SecurityDeclaration(SecurityAction Action, MetaDataMember parent, uint permissionSet)
     : base(new MetaDataRow((ushort)Action, 0U, permissionSet))
 {
 }
Exemplo n.º 41
0
 public CustomAttribute(MetaDataMember parent, MethodReference constructor, uint value)
     : base(new MetaDataRow(0U,0U, value))
 {
     this._parent = parent;
     this._constructor = constructor;
 }
Exemplo n.º 42
0
 public ManifestResource(string name, ManifestResourceAttributes attributes, MetaDataMember implementation, uint offset)
     : base(new MetaDataRow(offset, (uint)attributes, 0U, 0U))
 {
     this.name           = name;
     this.implementation = implementation;
 }
Exemplo n.º 43
0
 public override void ClearCache()
 {
     _parent = null;
     _constructor = null;
     _signature = null;
 }
Exemplo n.º 44
0
 public override void LoadCache()
 {
     _parent = Parent;
     _constructor = Constructor;
     _signature = Signature;
 }
Exemplo n.º 45
0
 public SecurityDeclaration(SecurityAction Action, MetaDataMember parent, uint permissionSet)
     : base(new MetaDataRow((ushort)Action, 0U, permissionSet))
 {
 }
Exemplo n.º 46
0
 public CustomAttribute(MetaDataMember parent, MethodReference constructor, uint value)
     : base(new MetaDataRow(0U, 0U, value))
 {
     this.parent      = parent;
     this.constructor = constructor;
 }
Exemplo n.º 47
0
 public override void LoadCache()
 {
     _parent = Parent;
 }
Exemplo n.º 48
0
 public override void ClearCache()
 {
     value = null;
     parent = null;
 }
Exemplo n.º 49
0
 private ValueType GetMemberIndex(Workspace workspace, MetaDataMember member)
 {
     if (member.Table.IsLarge(0))
         return member.TableIndex;
     return (ushort)member.TableIndex;
 }
Exemplo n.º 50
0
 public override void ClearCache()
 {
     _member      = null;
     _entrypoint  = null;
     _importScope = null;
 }
Exemplo n.º 51
0
 private ValueType GetMemberIndex(Workspace workspace, MetaDataTableGroup group, MetaDataMember member)
 {
     if (group.IsLarge)
         return group.GetCodedIndex(member);
     return (ushort)group.GetCodedIndex(member);
 }
Exemplo n.º 52
0
 public override void ClearCache()
 {
     _implementation = null;
 }
Exemplo n.º 53
0
 public override void ClearCache()
 {
     resolutionScope = null;
     name = null;
     @namespace = null;
 }
Exemplo n.º 54
0
 public override void ClearCache()
 {
     if (stream != null)
         stream.Dispose();
     stream = null;
     name = null;
     implementation = null;
 }
Exemplo n.º 55
0
 public GenericParameter(string name, ushort index, GenericParameterAttributes attributes, MetaDataMember owner)
     : base(new MetaDataRow(index, (ushort)attributes, 0U, 0U))
 {
     this.name  = name;
     this.owner = owner;
 }