For Babelfish Release 1.11.1.3

IntegerToStringConverter Class

Intended for use on string properties that may receive some of their data from the REST API as integers and not strings. This converter converts the integer value into a string.

Definition

Namespace: Scopos.BabelFish.Converters.Microsoft
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public class IntegerToStringConverter : JsonConverter<string>
Inheritance
Object    JsonConverter    JsonConverterString    IntegerToStringConverter
Derived

Remarks

To use, add the following to the Property

[JsonConverter(typeof(IntegerToStringConverter))]

Constructors

Properties

HandleNullGets a value that indicates whether should be passed to the converter on serialization, and whether Null should be passed on deserialization.
(Inherited from JsonConverterString)
TypeGets the type being converted by the current converter instance.
(Inherited from JsonConverterString)

Methods

CanConvertDetermines whether the specified type can be converted.
(Inherited from JsonConverterString)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Read
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
ReadAsPropertyNameReads a dictionary key from a JSON property name.
(Inherited from JsonConverterString)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Write
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))
WriteAsPropertyNameWrites a dictionary key as a JSON property name.
(Inherited from JsonConverterString)

Fields

See Also