C# Class Google.Maps.JsonEnumTypeConverter

Inheritance: Newtonsoft.Json.JsonConverter
Mostrar archivo Open project: ericnewton76/gmaps-api-net

Public Methods

Method Description
AsAddressType ( string s ) : AddressType
AsLocationType ( string s ) : LocationType
AsResponseStatus ( string s ) : ServiceResponseStatus
CanConvert ( Type objectType ) : bool
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Private Methods

Method Description
AsPlaceType ( string s ) : Places.PlaceType

Method Details

AsAddressType() public static method

public static AsAddressType ( string s ) : AddressType
s string
return AddressType

AsLocationType() public static method

public static AsLocationType ( string s ) : LocationType
s string
return LocationType

AsResponseStatus() public static method

public static AsResponseStatus ( string s ) : ServiceResponseStatus
s string
return ServiceResponseStatus

CanConvert() public method

public CanConvert ( Type objectType ) : bool
objectType System.Type
return bool

ReadJson() public method

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader
objectType System.Type
existingValue object
serializer Newtonsoft.Json.JsonSerializer
return object

WriteJson() public method

public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter
value object
serializer Newtonsoft.Json.JsonSerializer
return void