Class AssemblyAttributes
A helper class for accessing assembly attributes for an assembly.
public class AssemblyAttributes
- Inheritance
-
AssemblyAttributes
- Inherited Members
Constructors
AssemblyAttributes(Assembly)
Initializes a new instance of the AssemblyAttributes class.
public AssemblyAttributes(Assembly assembly)
Parameters
assembly
AssemblyThe assembly from which to access attributes.
Properties
Copyright
Gets the Copyright value from the AssemblyCopyrightAttribute, or null if the attribute does not exist.
public string Copyright { get; }
Property Value
CopyrightForConsole
Gets the Copyright value from the AssemblyCopyrightAttribute, formatted for display to the console (copyright symbols changed to "(c)"), or null if the attribute does not exist.
public string CopyrightForConsole { get; }
Property Value
Description
Gets the Description value from the AssemblyDescriptionAttribute, or null if the attribute does not exist.
public string Description { get; }
Property Value
Entry
Gets the helper for accessing the entry assembly attributes.
public static AssemblyAttributes Entry { get; }
Property Value
FileVersion
Gets the Version value from the AssemblyFileVersionAttribute, or null if the attribute does not exist.
public string FileVersion { get; }
Property Value
InformationalVersion
Gets the InformationalVersion value from the AssemblyInformationalVersionAttribute, or null if the attribute does not exist.
public string InformationalVersion { get; }
Property Value
Version
Gets a version for display.
public string Version { get; }
Property Value
Remarks
The version will be determined as follows:
- If AssemblyInformationalVersionAttribute exists, that value will be returned.
- Otherwise, if AssemblyFileVersionAttribute exists, that value will be returned.
- Otherwise, the version from the assembly's long name will be returned.
Methods
Executing()
Gets the helper for accessing the executing assembly attributes.
public static AssemblyAttributes Executing()
Returns
- AssemblyAttributes
The helper for accessing the executing assembly attributes.