GetProductVersion Method
Definition
- Namespace
- Cuemon.Reflection
- Assemblies
- Cuemon.Core.dll
GetProductVersion(IDecorator<Assembly>)
Returns a VersionResult that represents the AssemblyInformationalVersionAttribute of the underlying Assembly of the decorator.
public static VersionResult GetProductVersion(this IDecorator<Assembly> decorator)
Parameters
decoratorIDecorator<Assembly>The IDecorator<T> to extend.
Returns
- VersionResult
A VersionResult that represents the product version of the underlying Assembly of the
decorator; null if no AssemblyInformationalVersionAttribute could be retrieved.
Exceptions
- ArgumentNullException
decoratorcannot be null.