C# Class Microsoft.Cci.Ast.Assembly

Represents a .NET assembly.
Inheritance: Module, IAssembly
显示文件 Open project: visualmutator/visualmutator

Private Properties

Property Type Description

Public Methods

Method Description
Dispatch ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IAssembly).

DispatchAsReference ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IAssemblyReference).

Protected Methods

Method Description
Assembly ( IName name, string location, IName moduleName, IEnumerable assemblyReferences, IEnumerable moduleReferences, IEnumerable resources, IEnumerable files ) : System

Allocates an object that represents a .NET assembly.

GetAssemblyAttributes ( ) : List

Returns a list of custom attributes that describes this type declaration member. Typically, these will be derived from this.SourceAttributes. However, some source attributes might instead be persisted as metadata bits and other custom attributes may be synthesized from information not provided in the form of source custom attributes. The list is not trimmed to size, since an override of this method may call the base method and then add more attributes.

Method Details

Assembly() protected method

Allocates an object that represents a .NET assembly.
protected Assembly ( IName name, string location, IName moduleName, IEnumerable assemblyReferences, IEnumerable moduleReferences, IEnumerable resources, IEnumerable files ) : System
name IName The name of the unit.
location string An indication of the location where the unit is or will be stored. This need not be a file system path and may be empty. /// The interpretation depends on the IMetadataHost instance used to resolve references to this unit.
moduleName IName The name of the module containing the assembly manifest. This can be different from the name of the assembly itself.
assemblyReferences IEnumerable A list of the assemblies that are referenced by this module.
moduleReferences IEnumerable A list of the modules that are referenced by this module.
resources IEnumerable A list of named byte sequences persisted with the assembly and used during execution, typically via .NET Framework helper classes.
files IEnumerable /// A list of the files that constitute the assembly. These are not the source language files that may have been /// used to compile the assembly, but the files that contain constituent modules of a multi-module assembly as well /// as any external resources. It corresonds to the File table of the .NET assembly file format. ///
return System

Dispatch() public method

Calls visitor.Visit(IAssembly).
public Dispatch ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
return void

DispatchAsReference() public method

Calls visitor.Visit(IAssemblyReference).
public DispatchAsReference ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
return void

GetAssemblyAttributes() protected method

Returns a list of custom attributes that describes this type declaration member. Typically, these will be derived from this.SourceAttributes. However, some source attributes might instead be persisted as metadata bits and other custom attributes may be synthesized from information not provided in the form of source custom attributes. The list is not trimmed to size, since an override of this method may call the base method and then add more attributes.
protected GetAssemblyAttributes ( ) : List
return List