예제 #1
0
 public void Unregister(T component)
 {
     if (!components.Remove(component))
     {
         if (defaultComponent.Contains(component))
         {
             defaultComponent = ValueHolder <T> .Empty();
         }
     }
 }
예제 #2
0
 public void ClearDefault()
 {
     defaultComponent = ValueHolder <T> .Empty();
 }