|
Joutsen Logging v0.5.0+22-gec3d058
|
A scope implementation that represents a method of a type. More...
Public Member Functions | |
| MethodScope (Type type, [CallerMemberName]string methodName=null) | |
| Creates a new scope for a type and a method. More... | |
| override string | ToString (string format, IFormatProvider formatProvider) |
| Formats the scope into a string. More... | |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| override Map< string, string > | ToNamedStrings (string format, IFormatProvider formatProvider) |
| Creates a map of key value pairs which can be used to write the scope in a structured way. More... | |
Public Member Functions inherited from TypeScope | |
| TypeScope (Type type) | |
| create a new instance for a type. More... | |
| virtual string | ToString (string format, IFormatProvider formatProvider) |
| Formats the scope into a string. More... | |
| override string | ToString () |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| virtual Map< string, string > | ToNamedStrings (string format, IFormatProvider formatProvider) |
| Creates a map of key value pairs which can be used to write the scope in a structured way. More... | |
| Map< string, string > | ToNamedStrings (string format, IFormatProvider formatProvider) |
| Creates a map of key value pairs which can be used to write the scope in a structured way. More... | |
Properties | |
| string | MethodName [get] |
| the name of the method. More... | |
Properties inherited from TypeScope | |
| Type | Type [get] |
| the type represented by the scope. More... | |
A scope implementation that represents a method of a type.
| MethodScope.MethodScope | ( | Type | type, |
| [CallerMemberName] string | methodName = null |
||
| ) |
Creates a new scope for a type and a method.
| type | the type that contains the method |
| methodName | the name of a specific method. If not provided the compiler will fill in the name of the method that is calling this constructor. |
| override bool MethodScope.Equals | ( | object | obj | ) |
| override int MethodScope.GetHashCode | ( | ) |
|
virtual |
Creates a map of key value pairs which can be used to write the scope in a structured way.
| format | the string that defines the output format for the scope |
| formatProvider | provides localization information to format the scopes information |
Reimplemented from TypeScope.
|
virtual |
Formats the scope into a string.
| format | the format to use to represent the scope |
| formatProvider | a format provider used for lacation specific representation |
Reimplemented from TypeScope.
|
get |
the name of the method.