In This Article

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

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

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

Version

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

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

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

Inherited Members