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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eConverterRegistry\u003c/code\u003e class within the Google Cloud Firestore API, specifically in version 3.3.0 and later.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConverterRegistry\u003c/code\u003e is a class that manages a collection of custom converters, which are used to handle data types not directly supported by Firestore, helping to avoid the necessity for Firestore-specific attributes on types.\u003c/p\u003e\n"],["\u003cp\u003eThe registry is utilized when creating a \u003ccode\u003eFirestoreDb\u003c/code\u003e instance through the \u003ccode\u003eFirestoreDbBuilder\u003c/code\u003e and its \u003ccode\u003eConverterRegistry\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements the \u003ccode\u003eIEnumerable\u003c/code\u003e interface and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, providing core functionality like getting the hash code, type, and string representation.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003eAdd<T>(IFirestoreConverter<T>)\u003c/code\u003e, is used to register a new converter for a specific type, throwing an \u003ccode\u003eArgumentException\u003c/code\u003e if a converter for that type already exists.\u003c/p\u003e\n"]]],[],null,[]]