System.Reflection.MethodBase Members

The members of System.Reflection.MethodBase are listed below.

See Also: Inherited members from System.Reflection.MemberInfo

Protected Constructors

Initializes a new instance of the System.Reflection.MethodBase class.

Public Properties

[read-only]
abstract
AttributesMethodAttributes.

Gets the attributes associated with this method.

[read-only]
CallingConventionCallingConventions.

Gets a value indicating the calling conventions for this method.

[read-only]
ContainsGenericParametersbool.

Gets a value indicating whether the generic method contains unassigned generic type parameters.

[read-only]
IsAbstractbool.

Gets a value indicating whether the method is abstract.

[read-only]
IsAssemblybool.

Gets a value indicating whether the potential visibility of this method or constructor is described by MethodAttributes.Assembly; that is, the method or constructor is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly.

[read-only]
IsConstructorbool.

Gets a value indicating whether the method is a constructor.

[read-only]
IsFamilybool.

Gets a value indicating whether the visibility of this method or constructor is described by MethodAttributes.Family; that is, the method or constructor is visible only within its class and derived classes.

[read-only]
IsFamilyAndAssemblybool.

Gets a value indicating whether the visibility of this method or constructor is described by MethodAttributes.FamANDAssem; that is, the method or constructor can be called by derived classes, but only if they are in the same assembly.

[read-only]
IsFamilyOrAssemblybool.

Gets a value indicating whether the potential visibility of this method or constructor is described by MethodAttributes.FamORAssem; that is, the method or constructor can be called by derived classes wherever they are, and by classes in the same assembly.

[read-only]
IsFinalbool.

Gets a value indicating whether this method is final.

[read-only]
IsGenericMethodbool.

Gets a value indicating whether the method is generic.

[read-only]
IsGenericMethodDefinitionbool.

Gets a value indicating whether the method is a generic method definition.

[read-only]
IsHideBySigbool.

Gets a value indicating whether only a member of the same kind with exactly the same signature is hidden in the derived class.

[read-only]
IsPrivatebool.

Gets a value indicating whether this member is private.

[read-only]
IsPublicbool.

Gets a value indicating whether this is a public method.

[read-only]
IsSecurityCriticalbool.

Gets a value that indicates whether the current method or constructor is security-critical or security-safe-critical at the current trust level, and therefore can perform critical operations.

[read-only]
IsSecuritySafeCriticalbool.

Gets a value that indicates whether the current method or constructor is security-safe-critical at the current trust level; that is, whether it can perform critical operations and can be accessed by transparent code.

[read-only]
IsSecurityTransparentbool.

Gets a value that indicates whether the current method or constructor is transparent at the current trust level, and therefore cannot perform critical operations.

[read-only]
IsSpecialNamebool.

Gets a value indicating whether this method has a special name.

[read-only]
IsStaticbool.

Gets a value indicating whether the method is static.

[read-only]
IsVirtualbool.

Gets a value indicating whether the method is virtual.

[read-only]
abstract
MethodHandleRuntimeMethodHandle.

Gets a handle to the internal metadata representation of a method.

[read-only]
MethodImplementationFlagsMethodImplAttributes.

Gets the System.Reflection.MethodImplAttributes flags that specify the attributes of a method implementation.

Public Methods

override
Equals(object) : bool

Returns a value that indicates whether this instance is equal to a specified object.

static
GetCurrentMethod() : MethodBase

Returns a MethodBase object representing the currently executing method.

GetGenericArguments() : Type[]

Returns an array of Type objects that represent the type arguments of a generic method or the type parameters of a generic method definition.

override
GetHashCode() : int

Returns the hash code for this instance.

GetMethodBody() : MethodBody

When overridden in a derived class, gets a System.Reflection.MethodBody object that provides access to the MSIL stream, local variables, and exceptions for the current method.

static
GetMethodFromHandle(RuntimeMethodHandle) : MethodBase

Gets method information by using the method's internal metadata representation (handle).

static
GetMethodFromHandle(RuntimeMethodHandle, RuntimeTypeHandle) : MethodBase

Gets a System.Reflection.MethodBase object for the constructor or method represented by the specified handle, for the specified generic type.

abstract
GetMethodImplementationFlags() : MethodImplAttributes

When overridden in a derived class, returns the System.Reflection.MethodImplAttributes flags.

abstract
GetParameters() : ParameterInfo[]

When overridden in a derived class, gets the parameters of the specified method or constructor.

GetType() : Type
Documentation for this section has not yet been entered.
Invoke(object, object[]) : object

Invokes the method or constructor represented by the current instance, using the specified parameters.

abstract
Invoke(object, BindingFlags, Binder, object[], System.Globalization.CultureInfo) : object

When overridden in a derived class, invokes the reflected method or constructor with the given parameters.

Public Operators

static
Equality(MethodBase, MethodBase)

Indicates whether two System.Reflection.MethodBase objects are equal.

static
Inequality(MethodBase, MethodBase)

Indicates whether two System.Reflection.MethodBase objects are not equal.

Explicitly Implemented Interface Members

System.Runtime.InteropServices._MethodBase.GetIDsOfNamesDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._MethodBase.GetType

For a description of this member, see System.Runtime.InteropServices._MethodBase.GetType.

System.Runtime.InteropServices._MethodBase.GetTypeInfo

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System.Runtime.InteropServices._MethodBase.GetTypeInfoCountDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._MethodBase.InvokeDocumentation for this section has not yet been entered.