Firestore API - Class ConverterRegistry (3.2.0)

public sealed class ConverterRegistry : IEnumerable

Reference documentation and code samples for the Firestore API class ConverterRegistry.

Registry of custom converters. This is used to avoid requiring Firestore-specific attributes on types which may be intended to be non-Firestore-specific. The registry may be specified when creating a FirestoreDb via ConverterRegistry.

Inheritance

object > ConverterRegistry

Implements

IEnumerable

Namespace

GoogleCloudFirestore

Assembly

Google.Cloud.Firestore.dll

Methods

Add<T>(IFirestoreConverter<T>)

public void Add<T>(IFirestoreConverter<T> converter)

Adds the given converter to the registry.

Parameter
NameDescription
converterIFirestoreConverter

The converter to add.

Type Parameter
NameDescription
T

The type that converter converts to/from.

Exceptions
TypeDescription
ArgumentException

There is already a converter in the registry for the given type.