Class FormatterRegistry
- Namespace
- Conjecture.Core
- Assembly
- Conjecture.Core.dll
Global registry mapping types to their IStrategyFormatter<T> instances.
public static class FormatterRegistry
- Inheritance
-
FormatterRegistry
- Inherited Members
Methods
Get<T>()
Returns the registered formatter for T, or null if none is registered.
public static IStrategyFormatter<T>? Get<T>()
Returns
Type Parameters
T
Register<T>(IStrategyFormatter<T>?)
Registers formatter for type T, replacing any existing registration.
public static void Register<T>(IStrategyFormatter<T>? formatter)
Parameters
formatterIStrategyFormatter<T>
Type Parameters
T