示例#1
0
 internal static CilModuleReference Create(ModuleReference moduleReference, ref CilReaders readers, int token)
 {
     CilModuleReference reference = new CilModuleReference();
     reference._readers = readers;
     reference._moduleReference = moduleReference;
     reference._token = token;
     return reference;
 }
示例#2
0
        internal static CilModuleReference Create(ModuleReference moduleReference, ref CilReaders readers, int token)
        {
            CilModuleReference reference = new CilModuleReference();

            reference._readers         = readers;
            reference._moduleReference = moduleReference;
            reference._token           = token;
            return(reference);
        }
示例#3
0
 private IEnumerable <CilModuleReference> GetModuleReferences()
 {
     for (int rid = 1, rowCount = _readers.MdReader.GetTableRowCount(TableIndex.ModuleRef); rid <= rowCount; rid++)
     {
         var handle          = MetadataTokens.ModuleReferenceHandle(rid);
         var moduleReference = _readers.MdReader.GetModuleReference(handle);
         int token           = MetadataTokens.GetToken(handle);
         yield return(CilModuleReference.Create(moduleReference, ref _readers, token));
     }
 }