internal static CilAssemblyReference Create(AssemblyReference assemblyRef, int token, ref CilReaders readers, CilAssembly assemblyDefinition) { CilAssemblyReference assembly = new CilAssemblyReference(); assembly._assemblyRef = assemblyRef; assembly._token = token; assembly._readers = readers; assembly._assemblyDefinition = assemblyDefinition; return assembly; }
private IEnumerable <CilAssemblyReference> GetAssemblyReferences() { foreach (var handle in _readers.MdReader.AssemblyReferences) { var assembly = _readers.MdReader.GetAssemblyReference(handle); int token = MetadataTokens.GetToken(handle); yield return(CilAssemblyReference.Create(assembly, token, ref _readers, this)); } }
internal static CilAssemblyReference Create(AssemblyReference assemblyRef, int token, ref CilReaders readers, CilAssembly assemblyDefinition) { CilAssemblyReference assembly = new CilAssemblyReference(); assembly._assemblyRef = assemblyRef; assembly._token = token; assembly._readers = readers; assembly._assemblyDefinition = assemblyDefinition; return(assembly); }
public AssemblyReferenceNode(CilAssemblyReference car) { _assemblyRef = car; }