Class RoslynAssembly
Namespace: Neon.Roslyn
Assembly: Neon.Roslyn.dll
Syntax
public class RoslynAssembly : Assembly
Constructors
RoslynAssembly(IAssemblySymbol, MetadataLoadContext)
Declaration
public RoslynAssembly(IAssemblySymbol assembly, MetadataLoadContext metadataLoadContext)
Parameters
Type | Name | Description |
---|---|---|
IAssemblySymbol | assembly | |
MetadataLoadContext | metadataLoadContext |
Properties
FullName
Gets the display name of the assembly.
Declaration
public override string FullName { get; }
Property Value
Type | Description |
---|---|
string | The display name of the assembly. |
Overrides
Methods
GetExportedTypes()
Gets the public types defined in this assembly that are visible outside the assembly.
Declaration
public override Type[] GetExportedTypes()
Returns
Type | Description |
---|---|
Type[] | An array that represents the types defined in this assembly that are visible outside the assembly. |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | The assembly is a dynamic assembly. |
FileNotFoundException | Unable to load a dependent assembly. |
GetType(string)
Gets the Type object with the specified name in the assembly instance.
Declaration
public override Type GetType(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The full name of the type. |
Returns
Type | Description |
---|---|
Type | An object that represents the specified class, or null if the class is not found. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
ArgumentNullException |
|
FileNotFoundException |
|
FileLoadException |
-or- The current assembly was loaded into the reflection-only context, and Note: In .NET for Windows Store apps or the Portable Class Library, catch the base class exception, IOException, instead. |
BadImageFormatException |
-or-
|
GetTypes()
Gets all types defined in this assembly.
Declaration
public override Type[] GetTypes()
Returns
Type | Description |
---|---|
Type[] | An array that contains all the types that are defined in this assembly. |
Overrides
Exceptions
Type | Condition |
---|---|
ReflectionTypeLoadException | The assembly contains one or more types that cannot be loaded. The array returned by the Types property of this exception contains a Type object for each type that was loaded and null for each type that could not be loaded, while the LoaderExceptions property contains an exception for each type that could not be loaded. |