Skip to main content

IGeospatialYamlSerializer

Namespace: Meshmakers.Octo.Runtime.Contracts.Geospatial

Interface for serializing geospatial object types to YAML format.

public interface IGeospatialYamlSerializer

Methods​

Serialize<T>(T)​

Serializes the specified object to YAML format.

string Serialize<T>(T obj)

Type Parameters​

T
The type of object to serialize.

Parameters​

obj T
The object to serialize.

Returns​

String
Serialized YAML string.

Deserialize<T>(String)​

Deserializes the specified YAML string to an object of the specified type.

T Deserialize<T>(string yaml)

Type Parameters​

T
The type of object to deserialize.

Parameters​

yaml String
The YAML string to deserialize.

Returns​

T
Data object of the specified type.