A convenience class to convert property values to specific types.
Inheritance Hierarchy
log4net.UtilOptionConverter
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The OptionConverter type exposes the following members.
Methods
Name | Description | |
---|---|---|
CanConvertTypeTo |
Checks if there is an appropriate type conversion from the source type to the target type.
| |
ConvertStringTo |
Converts a string to an object.
| |
ConvertTypeTo |
Converts an object to the target type.
| |
Equals | (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.) | |
InstantiateByClassName |
Instantiates an object given a class name.
| |
SubstituteVariables |
Performs variable substitution in string value from the
values of keys found in props.
| |
ToBoolean |
Converts a string to a Boolean value.
| |
ToFileSize |
Parses a file size into a number.
| |
ToString | (Inherited from Object.) |
Remarks
Utility functions for converting types and parsing values.
See Also