public void Unregister(T component) { if (!components.Remove(component)) { if (defaultComponent.Contains(component)) { defaultComponent = ValueHolder <T> .Empty(); } } }
public void ClearDefault() { defaultComponent = ValueHolder <T> .Empty(); }