Show / Hide Table of Contents

    Class MethodBaseConverter

    This utility class is designed to make System.Reflection.MethodBase related conversions easier to work with.

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

    Methods

    | Improve this Doc

    FromType(Type, Type[], String, BindingFlags)

    Converts the specified caller information into an instance of a System.Reflection.MethodBase object.

    Declaration
    public static MethodBase FromType(Type caller, Type[] types = null, string memberName = "", BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.Static)
    Parameters
    Type Name Description
    System.Type caller

    The System.Type to conduct a search for memberName.

    System.Type[] types

    An array of System.Type objects representing the number, order, and type of the parameters for the method to get.

    System.String memberName

    The name of the member of caller.

    System.Reflection.BindingFlags flags

    A bitmask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted.

    Returns
    Type Description
    System.Reflection.MethodBase

    An object representing the method that matches the specified requirements, if found; otherwise, null.

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