コード例 #1
0
 /// <summary>
 /// Unregisters a GUID Component.
 /// </summary>
 /// <param name="component"></param>
 /// <returns>True if the Component was found and unregistered, false otherwise.</returns>
 public bool Unregister(SceneObjectGuid component)
 {
     return(m_Components.Remove(component.Id));
 }
コード例 #2
0
 /// <summary>
 /// Registers a GUID component.
 /// </summary>
 /// <param name="component"></param>
 public void Register(SceneObjectGuid component)
 {
     Assert.IsFalse(string.IsNullOrEmpty(component.Id));
     //Add will trow an exception if the id is already registered
     m_Components.Add(component.Id, component);
 }