namespace LanLib.UpdateManager { /// Base interface for objects that can manage public interface IManagedObject { } public static class IUpdatableExtensions { /// /// Shortcut for UpdateManager.Instance.Register(). /// /// public static void RegisterInManager(this IManagedObject updatable) { UpdateManager.Instance.Register(updatable); } /// /// Shortcut for UpdateManager.Instance.Unregister(). /// /// public static void UnregisterInManager(this IManagedObject updatable) { UpdateManager.Instance.Unregister(updatable); } } }