Table of Contents

GetFileVersion Method

Definition

GetFileVersion(IDecorator<Assembly>)

Returns a VersionResult that represents the AssemblyFileVersionAttribute of the underlying Assembly of the decorator.

public static VersionResult GetFileVersion(this IDecorator<Assembly> decorator)

Parameters

decorator IDecorator<Assembly>

The IDecorator<T> to extend.

Returns

VersionResult

A VersionResult that represents the file version of the underlying Assembly of the decorator; null if no AssemblyFileVersionAttribute could be retrieved.

Exceptions

ArgumentNullException

decorator cannot be null.