Show / Hide Table of Contents

Class BboxToVector2dBoundsConverter

Bbox to geo coordinate bounds converter.

Inheritance
System.Object
BboxToVector2dBoundsConverter
Namespace:Mapbox.Utils.JsonConverters
Assembly:Mapbox.Utils.dll
Syntax
public class BboxToVector2dBoundsConverter : CustomCreationConverter<Vector2dBounds>

Properties

CanWrite

Gets a value indicating whether this Mapbox.BboxToVector2dBoundsConverter can write.

Declaration
public override bool CanWrite { get; }
Property Value
Type Description
System.Boolean

true if can write; otherwise, false.

Methods

Create(Type)

Create the specified objectType.

Declaration
public override Vector2dBounds Create(Type objectType)
Parameters
Type Name Description
Type objectType

Object type.

Returns
Type Description
Vector2dBounds

A Vector2dBounds.

Create(Type, JArray)

Create the specified objectType and jArray.

Declaration
public Vector2dBounds Create(Type objectType, JArray val)
Parameters
Type Name Description
Type objectType

Object type.

JArray val

J array.

Returns
Type Description
Vector2dBounds

A Vector2dBounds.

ReadJson(JsonReader, Type, Object, JsonSerializer)

Reads the json.

Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type Name Description
JsonReader reader

A reader.

Type objectType

Object type.

System.Object existingValue

Existing value.

JsonSerializer serializer

A .

Returns
Type Description
System.Object

The serialized object.

WriteJson(JsonWriter, Object, JsonSerializer)

Writes the JSON as an array.

Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type Name Description
JsonWriter writer

A .

System.Object value

The value to serialize.

JsonSerializer serializer

A .

Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX