docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IsDefinedGetInheritedTypes

    IsDefinedGetInheritedTypes<TAttribute>(Type, List<Type>)

    Returns an array of types from the current type back to the declaring type that includes an inherited attribute.

    Declaration
    public static void IsDefinedGetInheritedTypes<TAttribute>(this Type type, List<Type> types) where TAttribute : Attribute
    Parameters
    Type Name Description
    Type type

    Type that has the attribute or inherits the attribute.

    List<Type> types

    A list to which matching types will be added.

    Type Parameters
    Name Description
    TAttribute

    Type of attribute we are checking if is defined.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)