Class FileVersionInfoExtensions
Extension methods for the System.Diagnostics.FileVersionInfo class.
Inheritance
System.Object
FileVersionInfoExtensions
Namespace: Cuemon.Diagnostics
Assembly: Cuemon.Core.dll
Syntax
public static class FileVersionInfoExtensions
Methods
| Improve this DocToFileVersion(FileVersionInfo)
Returns a System.Version from the specified fvi
.
Declaration
public static Version ToFileVersion(this FileVersionInfo fvi)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.FileVersionInfo | fvi | An instance of System.Diagnostics.FileVersionInfo. |
Returns
Type | Description |
---|---|
System.Version | A System.Version that represents the file version that the System.Diagnostics.FileVersionInfo is distributed with. |
Remarks
Should the specified fvi
not contain any file version, a System.Version initialized to 0.0.0.0 is returned.
ToProductVersion(FileVersionInfo)
Returns a System.Version from the specified fvi
.
Declaration
public static Version ToProductVersion(this FileVersionInfo fvi)
Parameters
Type | Name | Description |
---|---|---|
System.Diagnostics.FileVersionInfo | fvi | An instance of System.Diagnostics.FileVersionInfo. |
Returns
Type | Description |
---|---|
System.Version | A System.Version that represents the product version that the System.Diagnostics.FileVersionInfo is distributed with. |
Remarks
Should the specified fvi
not contain any product version, a System.Version initialized to 0.0.0.0 is returned.