Table of Contents

Class MethodInfo

Namespace
System.Reflection
Assembly
mscorlib.dll

Discovers the attributes of a method and provides access to method metadata.

public abstract class MethodInfo : MethodBase
Inheritance
MethodInfo
Inherited Members
Extension Methods

Remarks

Available only in mscorlib build with support for System.Reflection.

Constructors

MethodInfo()

protected MethodInfo()

Properties

MemberType

Gets a MemberTypes value indicating that this member is a method.

public override MemberTypes MemberType { get; }

Property Value

MemberTypes

A MemberTypes value indicating that this member is a method.

ReturnType

Gets the return type of this method.

public abstract Type ReturnType { get; }

Property Value

Type

The return type of this method.

Remarks

To get the return type property, first get the class Type. From the Type, get the MethodInfo. From the MethodInfo, get the ReturnType.