MethodItem Class | Apache log4net™ SDK Documentation

provides method information without actually referencing a System.Reflection.MethodBase as that would require that the containing assembly is loaded.
Inheritance Hierarchy

System
Object
log4net.Core
MethodItem

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    [SerializableAttribute]
    public class MethodItem

    <SerializableAttribute>
    Public Class MethodItem

    [SerializableAttribute]
    public ref class MethodItem

    [<SerializableAttribute>]
    type MethodItem =  class end

The MethodItem type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| MethodItem | constructs a method item for an unknown method.
| MethodItem(MethodBase) | constructs a method item from a method base by determining the method name and its parameters.
| MethodItem(String) | constructs a method item from the name of the method.
| MethodItem(String, String ) | constructs a method item from the name of the method and its parameters.

Top
Properties

| Name | Description
--- | --- | ---
| Name | Gets the method name of the caller making the logging request.
| Parameters | Gets the method parameters of the caller making the logging request.

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
See Also

#### Reference

log4net.Core Namespace