docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetMethodRecursively

    GetMethodRecursively(Type, string, BindingFlags)

    Searches this type and all base types for a method by name.

    Declaration
    public static MethodInfo GetMethodRecursively(this Type type, string name, BindingFlags bindingAttr)
    Parameters
    Type Name Description
    Type type

    The type being searched.

    string name

    The name of the method for which to search.

    BindingFlags bindingAttr

    BindingFlags passed to Type.GetMethod.

    Returns
    Type Description
    MethodInfo

    MethodInfo for the first matching method found. Null if no method is found.

    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)