Nucleus .Net Core CMS

AssemblyExtensions Class

Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
The AssemblyExtensions class extends the System.Assembly class and provides easy access to assembly attributes.
Company (Assembly assembly)
Gets the assembly company.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

Copyright (Assembly assembly)
Gets the assembly copyright.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

string Description (Assembly assembly)
Gets the assembly description.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

GetAttribute<T0, T1> (Assembly assembly, Expression<T0> propertyAccessorExpression)
Gets an assembly attribute.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

propertyAccessorExpression System.Linq.Expressions.Expression<T0>
Remarks
The attribute specified by TAttribute must have AllowMultiple=false and AttributeTargets=AttributeTargets.Assembly.
GetAttribute<T0> (Assembly assembly)
Gets an assembly attribute.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

Remarks
The attribute specified by TAttribute must have AllowMultiple=false and AttributeTargets=AttributeTargets.Assembly.
GetAttributes<T0> (Assembly assembly)
Gets a list of the specified assembly attribute.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

Remarks
Use this overload when the attribute specified by TAttribute has AllowMultiple=true.
LogName (Assembly assembly)
Returns the assembly name, version and relative location.
Parameters
Name Type
assembly System.Reflection.Assembly
string Product (Assembly assembly)
Gets the assembly product name.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

string Repository (Assembly assembly)
Gets the assembly product name.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

ShortName (Assembly assembly)
Gets the assembly name and version.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

Remarks
This value is typically used in application log messages.
Title (Assembly assembly)
Gets the assembly title.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.

Version (Assembly assembly)
Gets the assembly version.
Parameters
Name Type
assembly System.Reflection.Assembly

The Assembly to read data from.