static GenericParamContext GetGenericParamContext(ITypeOrMethodDef tmOwner) { var md = tmOwner as MethodDef; if (md != null) { return(GenericParamContext.Create(md)); } return(new GenericParamContext(tmOwner as TypeDef)); }
/// <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); }
/// <inheritdoc/> protected override MarshalType GetMarshalType_NoLock() { return(readerModule.ReadMarshalType(Table.Param, origRid, GenericParamContext.Create(declaringMethod))); }