Joutsen  v0.4.1
Public Member Functions | Static Public Member Functions | Properties | List of all members
Joutsen.System.Reflection.AssemblyInfo Class Reference

A class that can access various information contained in an System.Reflection.Assembly. More...

Public Member Functions

 AssemblyInfo (Assembly assembly)
 Creates a new instance for an System.Reflection.Assembly. More...
 

Static Public Member Functions

static T GetAssemblyAttribute< T > (Assembly assembly)
 Fetches information stored as System.Reflection.AssemblyAttributes. More...
 

Properties

string Company [get]
 Fetches the company name. More...
 
string Product [get]
 Fetches the product name. More...
 
string Copyright [get]
 Fetches the copyright information. More...
 
string Trademark [get]
 Fetches the trademark. More...
 
string Title [get]
 Fetches the assembly title. More...
 
string Description [get]
 Fetches the assembly description name. More...
 
string Configuration [get]
 Fetches the build configuration. More...
 
string FileVersion [get]
 Fetches the file version name. More...
 
string InformationalVersion [get]
 Fetches the informational version of the assembly which contains additional version information. More...
 
Version Version [get]
 Fetches the assembly's version. More...
 

Detailed Description

A class that can access various information contained in an System.Reflection.Assembly.

Constructor & Destructor Documentation

◆ AssemblyInfo()

Joutsen.System.Reflection.AssemblyInfo.AssemblyInfo ( Assembly  assembly)

Creates a new instance for an System.Reflection.Assembly.

Parameters
assemblythe System.Reflection.Assembly whose information to access

Member Function Documentation

◆ GetAssemblyAttribute< T >()

static T Joutsen.System.Reflection.AssemblyInfo.GetAssemblyAttribute< T > ( Assembly  assembly)
static

Fetches information stored as System.Reflection.AssemblyAttributes.

Template Parameters
Tthe type of the attribute
Parameters
assemblythe assembly to fetch the attribute value from.
Returns
the value of the attribute or null if the attribute is not present.
Type Constraints
T :Attribute 

Property Documentation

◆ Company

string Joutsen.System.Reflection.AssemblyInfo.Company
get

Fetches the company name.

Remarks
Requires the System.Reflection.AssemblyCompanyAttribute to be present in the assembly in order to return a value that is not null.

◆ Configuration

string Joutsen.System.Reflection.AssemblyInfo.Configuration
get

Fetches the build configuration.

Remarks
Requires the {System.Reflection.AssemblyConfigurationAttribute to be present in the assembly in order to return a value that is not null.

◆ Copyright

string Joutsen.System.Reflection.AssemblyInfo.Copyright
get

Fetches the copyright information.

Remarks
Requires the {System.Reflection.AssemblyCopyrightAttribute to be present in the assembly in order to return a value that is not null.

◆ Description

string Joutsen.System.Reflection.AssemblyInfo.Description
get

Fetches the assembly description name.

Remarks
Requires the System.Reflection.AssemblyDescriptionAttribute to be present in the assembly in order to return a value that is not null.

◆ FileVersion

string Joutsen.System.Reflection.AssemblyInfo.FileVersion
get

Fetches the file version name.

Remarks
Requires the System.Reflection.AssemblyFileVersionAttribute to be present in the assembly in order to return a value that is not null.

◆ InformationalVersion

string Joutsen.System.Reflection.AssemblyInfo.InformationalVersion
get

Fetches the informational version of the assembly which contains additional version information.

Remarks
In contrast to the assembly Framework.System.Reflection.AssemblyInfo.Version which always consists of the four integer values {Major}.{Minor}.{Revision}.{Build}, the informational version is a System.String containing any kind of version information.

◆ Product

string Joutsen.System.Reflection.AssemblyInfo.Product
get

Fetches the product name.

Remarks
Requires the System.Reflection.AssemblyProductAttribute to be present in the assembly in order to return a value that is not null.

◆ Title

string Joutsen.System.Reflection.AssemblyInfo.Title
get

Fetches the assembly title.

Remarks
Requires the System.Reflection.AssemblyTitleAttribute to be present in the assembly in order to return a value that is not null.

◆ Trademark

string Joutsen.System.Reflection.AssemblyInfo.Trademark
get

Fetches the trademark.

Remarks
Requires the System.Reflection.AssemblyTrademarkAttribute to be present in the assembly in order to return a value that is not null.

◆ Version

Version Joutsen.System.Reflection.AssemblyInfo.Version
get

Fetches the assembly's version.

Remarks
See also Framework.System.Reflection.AssemblyInfo.InformationalVersion.