System.Reflection.MethodInfo Class

public abstract class MethodInfo : MethodBase

Base Types

Object
  MemberInfo
    MethodBase
      MethodInfo

Assembly

mscorlib

Library

Reflection

Summary

Provides access to method metadata.

See Also

System.Reflection Namespace

Members

MethodInfo Constructors

MethodInfo Constructor

MethodInfo Methods

MethodInfo.GetBaseDefinition Method

MethodInfo Properties

MethodInfo.ReturnType Property


MethodInfo Constructor

protected MethodInfo();

Summary

Constructs a new instance of the MethodInfo class.

See Also

System.Reflection.MethodInfo Class, System.Reflection Namespace

MethodInfo.GetBaseDefinition Method

public abstract MethodInfo GetBaseDefinition();

Summary

Returns a new MethodInfo instance that reflects the first definition of the method reflected by the current instance in the inheritance hierarchy of that method.

Return Value

A new MethodInfo instance that reflects the first definition of the method reflected by the current instance in the inheritance hierarchy of that method.

Description

[Behaviors: System.Reflection.MethodInfo.GetBaseDefinition proceeds along the inheritance hierarchy of the method reflected by the current instance, returning a MethodInfo instance that reflects the first definition in the hierarchy of that method.

The method declaration to be reflected by the new MethodInfo instance is determined as follows:

]

See Also

System.Reflection.MethodInfo Class, System.Reflection Namespace

MethodInfo.ReturnType Property

public abstract Type ReturnType { get; }

Summary

Gets the type of the return value of the method reflected by the current instance.

Property Value

The Type of the return value of the method reflected by the current instance. This property is equal to the Type object representing Void if the return value of the method is void .

Description

[Behaviors: This property is read-only.]

See Also

System.Reflection.MethodInfo Class, System.Reflection Namespace