AssemblyExtensions Class
Provides extension methods for the Assembly type.
public static class AssemblyExtensions
- Inheritance:
- object object
Methods
GetCopyrightMetadata(Assembly)
Returns the assembly's copyright metadata from AssemblyCopyrightAttribute.
public static string? GetCopyrightMetadata(this Assembly assembly)
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The Assembly to examine. |
Returns
- string:
The assembly's copyright metadata.
GetDescriptionMetadata(Assembly)
Returns the assembly's description metadata from AssemblyDescriptionAttribute.
public static string? GetDescriptionMetadata(this Assembly assembly)
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The Assembly to examine. |
Returns
- string:
The assembly's description metadata.
GetFileVersion(Assembly)
Returns the assembly's file Version from AssemblyFileVersionAttribute.
public static Version GetFileVersion(this Assembly assembly)
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The Assembly to examine. |
Returns
GetInformationalVersion(Assembly)
Returns the assembly's informational version from AssemblyInformationalVersionAttribute.
public static string? GetInformationalVersion(this Assembly assembly)
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The Assembly to examine. |
Returns
- string:
The assembly's informational version.
GetProductMetadata(Assembly)
Returns the assembly's product name metadata from AssemblyProductAttribute.
public static string? GetProductMetadata(this Assembly assembly)
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The Assembly to examine. |
Returns
- string:
The assembly's product name metadata.
GetTitleMetadata(Assembly)
Returns the assembly's title metadata from AssemblyTitleAttribute.
public static string? GetTitleMetadata(this Assembly assembly)
Parameter | Type | Description |
---|---|---|
assembly | Assembly | The Assembly to examine. |
Returns
- string:
The assembly's title metadata.