Table of Contents

GetProductVersion Method

Definition

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

decorator IDecorator<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

decorator cannot be null.