docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetInterfaceFieldsFromClasses

    GetInterfaceFieldsFromClasses(IEnumerable<Type>, List<FieldInfo>, List<Type>, BindingFlags)

    Gets the field info on a collection of classes that are from a collection of interfaces.

    Declaration
    public static void GetInterfaceFieldsFromClasses(this IEnumerable<Type> classes, List<FieldInfo> fields, List<Type> interfaceTypes, BindingFlags bindingAttr)
    Parameters
    Type Name Description
    IEnumerable<Type> classes

    Collection of classes to get fields from.

    List<FieldInfo> fields

    A list to which matching fields will be added.

    List<Type> interfaceTypes

    Collection of interfaceTypes to check if field type implements any interface type.

    BindingFlags bindingAttr

    Binding flags of fields.

    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)