Click or drag to resize
MethodInfo Class
Discovers the attributes of a method and provides access to method metadata.
Inheritance Hierarchy

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class MethodInfo : MethodBase, 
	_MethodInfo

The MethodInfo type exposes the following members.

Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Overrides MethodBaseEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides MethodBaseGetHashCode.)
Public methodGetParameters
When overridden in a derived class, gets the parameters of the specified method or constructor.
(Inherited from MethodBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Indicates whether two MethodInfo objects are equal.
Public operatorStatic memberInequality
Indicates whether two MethodInfo objects are not equal.
Top
Properties
  NameDescription
Public propertyName
Gets the name of the current member.
(Inherited from MemberInfo.)
Public propertyReturnType
Gets the return type of this method.
Top
See Also