private void InitializeMemberList(uint ownerRid, MetadataRange memberRange)
 {
     _memberLists[ownerRid] = memberRange;
     foreach (var token in memberRange)
     {
         _memberOwners[token.Rid] = ownerRid;
     }
 }
Exemple #2
0
        private IList <TMember> CreateMemberCollection <TMember>(MetadataRange range)
            where TMember : class, IMetadataMember, IOwnedCollectionElement <TypeDefinition>
        {
            var result = new OwnedCollection <TypeDefinition, TMember>(this);

            foreach (var token in range)
            {
                result.Add((TMember)_parentModule.LookupMember(token));
            }

            return(result);
        }