Пример #1
0
        static GenericParamContext GetGenericParamContext(ITypeOrMethodDef tmOwner)
        {
            var md = tmOwner as MethodDef;

            if (md != null)
            {
                return(GenericParamContext.Create(md));
            }
            return(new GenericParamContext(tmOwner as TypeDef));
        }
Пример #2
0
        /// <inheritdoc/>
        protected override void InitializeCustomDebugInfos()
        {
            var list = ThreadSafeListCreator.Create <PdbCustomDebugInfo>();

            readerModule.InitializeCustomDebugInfos(new MDToken(MDToken.Table, origRid), GenericParamContext.Create(declaringMethod), list);
            Interlocked.CompareExchange(ref customDebugInfos, list, null);
        }
Пример #3
0
 /// <inheritdoc/>
 protected override MarshalType GetMarshalType_NoLock()
 {
     return(readerModule.ReadMarshalType(Table.Param, origRid, GenericParamContext.Create(declaringMethod)));
 }