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

SystemObject
  log4net.UtilOptionConverter

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

public sealed class OptionConverter

The OptionConverter type exposes the following members.

Methods

  NameDescription
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.)
Top
Remarks

Utility functions for converting types and parsing values.

See Also

Reference