Was this page helpful?

GetAttribute Extension Method

    GetAttribute(this Assembly assembly)

    public static T GetAttribute(this Assembly assembly);
    Get an assembly attribute by type.

    Generic Parameters

    Parameter T

    Type of the assembly attribute to retrieve.
    Constraints:
    • Attribute

    Parameters

    Name Type Description
    assembly Assembly Assembly to inspect.

    Returns

    Type: T
    Instance of the specified assembly attribute, or null if the attribute is not found.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by