OptionConverter ClassApache log4net™ SDK Documentation
A convenience class to convert property values to specific types.
Inheritance Hierarchy


Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 4.0

public sealed class OptionConverter

The OptionConverter type exposes the following members.


Public methodStatic memberCanConvertTypeTo
Checks if there is an appropriate type conversion from the source type to the target type.
Public methodStatic memberConvertStringTo
Converts a string to an object.
Public methodStatic memberConvertTypeTo
Converts an object to the target type.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInstantiateByClassName
Instantiates an object given a class name.
Public methodStatic memberSubstituteVariables
Performs variable substitution in string value from the values of keys found in props.
Public methodStatic memberToBoolean
Converts a string to a Boolean value.
Public methodStatic memberToFileSize
Parses a file size into a number.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Utility functions for converting types and parsing values.

See Also