register<T> static method
void
register<T>(
- T instance
Registers an instance of type T.
T is the type of the instance, and instance is the instance itself.
Implementation
static void register<T>(T instance) {
_instances[T] = instance;
}