In This Article

ProjectAssembly Class

Represents a project (source code-based) assembly.

public abstract class ProjectAssembly : IProjectAssembly, IAssembly
Inheritance:
object object
Derived:
CSharpProjectAssembly VBProjectAssembly
Implements:
IProjectAssembly IAssembly

Constructors

ProjectAssembly(IAssemblyName)

Initializes an instance of the class.

protected ProjectAssembly(IAssemblyName assemblyName)
Parameter Type Description
assemblyName IAssemblyName

An IAssemblyName that contains assembly name information.

ProjectAssembly(string)

Initializes an instance of the class.

protected ProjectAssembly(string name)
Parameter Type Description
name string

The simple name of the assembly.

Properties

AssemblyReferences

The collection of assembly references for this assembly.

public IProjectAssemblyReferenceCollection AssemblyReferences { get; }

Property Value

IProjectAssemblyReferenceCollection

Documentation

The IAssemblyDocumentation that provides access to this assembly's type and member documentation.

public IAssemblyDocumentation? Documentation { get; set; }

Property Value

IAssemblyDocumentation

GlobalNamespace

The entry point into the INamespaceDefinition tree defined in this assembly.

public INamespaceDefinition GlobalNamespace { get; }

Property Value

INamespaceDefinition

GlobalUsingDirectives

The collection of global IUsingDirective objects defined in this project assembly.

public IEnumerable<IUsingDirective> GlobalUsingDirectives { get; }

Property Value

IEnumerable<IUsingDirective>

IsLanguageCaseSensitive

Indicates whether the language associated with this project assembly is case-sensitive.

protected abstract bool IsLanguageCaseSensitive { get; }

Property Value

bool

Name

The simple name of the assembly.

public string? Name { get; }

Property Value

string

Namespaces

The collection of INamespaceDefinition objects defined in this assembly.

public INamespaceDefinitionCollection Namespaces { get; }

Property Value

INamespaceDefinitionCollection

Resolver

The IResolver to use for this project assembly.

public abstract IResolver Resolver { get; }

Property Value

IResolver

SourceFiles

The collection of source files in this project assembly.

public ISourceFileCollection SourceFiles { get; }

Property Value

ISourceFileCollection

Methods

GetAssemblyName()

Returns an IAssemblyName that contains assembly name information.

public IAssemblyName GetAssemblyName()

Returns

IAssemblyName

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

ToTreeString()

Outputs a string indicating the contents of the assembly in tree form.

public string ToTreeString()

Returns

string

Inherited Members

Extension Methods