Click or drag to resize
ObjectToEnumConverter Class
This convertor is fired to correctly serialize enum field for JSON using XmlEnumAttribute.
Inheritance Hierarchy
SystemObject
  JsonConverter
    Intuit.Ipp.UtilityObjectToEnumConverter

Namespace:  Intuit.Ipp.Utility
Assembly:  Intuit.Ipp.Utility (in Intuit.Ipp.Utility.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax
C#
public class ObjectToEnumConverter : JsonConverter

The ObjectToEnumConverter type exposes the following members.

Constructors
  NameDescription
Public methodObjectToEnumConverter
Initializes a new instance of the ObjectToEnumConverter class
Top
Properties
  NameDescription
Public propertyCanRead (Inherited from JsonConverter.)
Public propertyCanWrite (Inherited from JsonConverter.)
Top
Methods
  NameDescription
Public methodCanConvert
This method is used to check if it is of enum type.
(Overrides JsonConverter.CanConvert(Type).)
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.)
Public methodReadJson
This method is used for deserialization of enum field.
(Overrides JsonConverter.ReadJson(JsonReader, Type, Object, JsonSerializer).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteJson
This method is used for serialization of enum field.
(Overrides JsonConverter.WriteJson(JsonWriter, Object, JsonSerializer).)
Top
Extension Methods
  NameDescription
Public Extension MethodCopyRecursive
recursively copies object properties to destination.
(Defined by Utility.)
Top
See Also