Microsoft.Bot.Builder.Calling.ObjectModel.Misc.StringEnumConverterWithDefault< TEnum > Class Template Reference

Specialized StringEnumConverter that returns the default enum value instead of throwing if the string cannot be matched to an enum value during deserialization. More...

Inheritance diagram for Microsoft.Bot.Builder.Calling.ObjectModel.Misc.StringEnumConverterWithDefault< TEnum >:

Public Member Functions

 StringEnumConverterWithDefault ()
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 

Detailed Description

Specialized StringEnumConverter that returns the default enum value instead of throwing if the string cannot be matched to an enum value during deserialization.

Type Constraints
TEnum :struct 

Definition at line 11 of file StringEnumConverterWithDefault.cs.

Constructor & Destructor Documentation

Member Function Documentation

override object Microsoft.Bot.Builder.Calling.ObjectModel.Misc.StringEnumConverterWithDefault< TEnum >.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)
inline

Definition at line 18 of file StringEnumConverterWithDefault.cs.


The documentation for this class was generated from the following file: