Show / Hide Table of Contents

    Class AssemblyUtilityExtensions

    This is an extension implementation of the most common methods on the AssemblyUtility class.

    Inheritance
    System.Object
    AssemblyUtilityExtensions
    Namespace: Cuemon.Reflection
    Assembly: Cuemon.Reflection.dll
    Syntax
    public static class AssemblyUtilityExtensions

    Methods

    | Improve this Doc

    GetAssemblyVersion(Assembly)

    Returns a System.Version that represents the version number of the specified assembly.

    Declaration
    public static Version GetAssemblyVersion(this Assembly assembly)
    Parameters
    Type Name Description
    System.Reflection.Assembly assembly

    The assembly to resolve a System.Version from.

    Returns
    Type Description
    System.Version

    A System.Version that represents the version number of the specified assembly.

    | Improve this Doc

    GetFileVersion(Assembly)

    Returns a System.Version that represents the file version number of the specified assembly.

    Declaration
    public static Version GetFileVersion(this Assembly assembly)
    Parameters
    Type Name Description
    System.Reflection.Assembly assembly

    The assembly to resolve a System.Version from.

    Returns
    Type Description
    System.Version

    A System.Version that represents the file version number of the specified assembly.

    Exceptions
    Type Condition
    System.ArgumentNullException

    assembly is null.

    | Improve this Doc

    GetProductVersion(Assembly)

    Returns a System.Version that represents the version of the product this assembly is distributed with.

    Declaration
    public static Version GetProductVersion(this Assembly assembly)
    Parameters
    Type Name Description
    System.Reflection.Assembly assembly

    The assembly to resolve a System.Version from.

    Returns
    Type Description
    System.Version

    A System.Version that represents the version of the product this assembly is distributed with.

    Exceptions
    Type Condition
    System.ArgumentNullException

    assembly is null.

    | Improve this Doc

    IsDebugBuild(Assembly)

    Determines whether the specified assembly is a debug build.

    Declaration
    public static bool IsDebugBuild(this Assembly assembly)
    Parameters
    Type Name Description
    System.Reflection.Assembly assembly

    The assembly to parse and determine whether it is a debug build or not.

    Returns
    Type Description
    System.Boolean

    true if the specified assembly is a debug build; otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX