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; }
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); }
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)); } }