Exemplo n.º 1
0
 protected override void Initialize()
 {
     base.Initialize();
     foreach (var row in _table)
     {
         var member = (TypeDefinition) _table.GetMemberFromRow(Owner.Image, row);
         if (member.DeclaringType == null)
         {
             SetOwner(member, Owner);
             Items.Add(member);
         }
     }
 }
Exemplo n.º 2
0
        protected override void Initialize()
        {
            base.Initialize();
            foreach (var typeRid in _topLevelTypeTokens)
            {
                if (!_typeTable.TryGetRow((int)(typeRid - 1), out var typeRow))
                {
                    continue;
                }

                var member = (TypeDefinition)_typeTable.GetMemberFromRow(Owner.Image, typeRow);
                Items.Add(member);
                SetOwner(member, Owner);
            }
        }