Click or drag to resize
ValueConverterTValue Class
Provides a way to convert objects to values of some type.
Inheritance Hierarchy

Namespace: Splunk.Client
Assembly: Splunk.Client (in Splunk.Client.dll) Version: 2.2.8.0 (2.2.8.0)
Syntax
C#
public abstract class ValueConverter<TValue>

Type Parameters

TValue
Type of the value.

The ValueConverterTValue type exposes the following members.

Constructors
  NameDescription
Protected methodValueConverterTValue
Initializes a new instance of the ValueConverterTValue class
Top
Properties
  NameDescription
Public propertyDefaultValue
Gets the default value.
Top
Methods
  NameDescription
Public methodConvert
Converts the given input.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodStatic memberNewInvalidDataException
Creates a new invalid data exception.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldStatic memberComparer
The comparer.
Protected fieldStatic memberTypeName
Name of the type.
Top
Remarks
If you want to create a value converter, create a class that implements the Convert(Object) method and--optionally--overrides the DefaultValue property. Your Convert(Object) method should accept a value of any type and produce a TValue or throw an InvalidDataException.
See Also