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); } } }
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); } }