Instantiates an object given a class name.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- className
- Type: System String
The fully qualified class name of the object to instantiate.
- superClass
- Type: System Type
The class to which the new object should belong.
- defaultValue
- Type: System Object
The object to return in case of non-fulfillment.
Return Value
Type: ObjectAn instance of the className or defaultValue if the object could not be instantiated.
Remarks
Checks that the className is a subclass of superClass. If that test fails or the object could not be instantiated, then defaultValue is returned.
See Also