MethodInfo Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

<SerializableAttribute> _
Public MustInherit Class MethodInfo _
	Inherits MethodBase

The MethodInfo type exposes the following members.

Protected methodMethodInfoInitializes a new instance of the MethodInfo class.

Public propertyDeclaringTypeGets the class that declares the current method. (Inherited from MethodBase.)
Public propertyIsAbstractGets a value indicating whether the method is abstract. (Inherited from MethodBase.)
Public propertyIsFinalGets a value indicating whether this method is final. (Inherited from MethodBase.)
Public propertyIsPublicGets a value indicating whether this is a public method. (Inherited from MethodBase.)
Public propertyIsStaticGets a value indicating whether the method is static. (Inherited from MethodBase.)
Public propertyIsVirtualGets a value indicating whether the method is virtual. (Inherited from MethodBase.)
Public propertyMemberTypeGets a MemberTypes value indicating that this member is a method. (Overrides MemberInfo..::..MemberType.)
Public propertyNameGets the name of the current method. (Inherited from MethodBase.)
Public propertyReturnTypeGets the return type of this method.

Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInvokeInvokes the method or constructor represented by the current instance, using the specified parameters. (Inherited from MethodBase.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Instances of MethodInfo are obtained by calling the GetMethods or GetMethod method of a Type object or of an object that derives from Type, or by calling the MakeGenericMethod method of a MethodInfo that represents a generic method definition.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.