MethodBase Class

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

Provides information about methods and constructors.

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

public abstract class MethodBase : MemberInfo

The MethodBase type exposes the following members.

Protected methodMethodBaseInitializes a new instance of the MethodBase class.

Public propertyDeclaringTypeGets the class that declares the current method. (Overrides MemberInfo..::..DeclaringType.)
Public propertyIsAbstractGets a value indicating whether the method is abstract.
Public propertyIsFinalGets a value indicating whether this method is final.
Public propertyIsPublicGets a value indicating whether this is a public method.
Public propertyIsStaticGets a value indicating whether the method is static.
Public propertyIsVirtualGets a value indicating whether the method is virtual.
Public propertyMemberTypeWhen overridden in a derived class, gets a MemberTypes value indicating the type of the member — method, constructor, event, and so on. (Inherited from MemberInfo.)
Public propertyNameGets the name of the current method. (Overrides MemberInfo..::..Name.)

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.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

MethodBase is the base class of MethodInfo and ConstructorInfo.

This type is thread safe.