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.
Implements
Namespace: Google.Cloud.Firestore
Assembly: Google.Cloud.Firestore.dll
Syntax
public sealed class ConverterRegistry : IEnumerable
Methods
Add<T>(IFirestoreConverter<T>)
Adds the given converter to the registry.
Declaration
public void Add<T>(IFirestoreConverter<T> converter)
Parameters
Type | Name | Description |
---|---|---|
IFirestoreConverter<T> | converter | The converter to add. |
Type Parameters
Name | Description |
---|---|
T | The type that |
Exceptions
Type | Condition |
---|---|
ArgumentException | There is already a converter in the registry for the given type. |