Exemple #1
0
        void InitGenericParamConstraints_NoLock()
        {
            var  mdi2  = readerModule.MetaDataImport2;
            uint token = OriginalToken.Raw;

            // Don't clear the list to prevent recursive init
            //genericParamConstraints?.Clear();

            var itemTokens = MDAPI.GetGenericParamConstraintTokens(mdi2, token);

            genericParamConstraints = new LazyList <GenericParamConstraint>(itemTokens.Length, this, itemTokens, (itemTokens2, index) => readerModule.ResolveGenericParamConstraintDontCache(itemTokens[index], GetGenericParamContext(owner)));
        }