コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: CilAssembly.cs プロジェクト: zsybupt/corefxlab
 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));
     }
 }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: ListNodes.cs プロジェクト: mellinoe/assemblybrowser
 public AssemblyReferenceNode(CilAssemblyReference car)
 {
     _assemblyRef = car;
 }