/// <summary> /// 移除所有的监听 /// </summary> static public void ClearAllListener <T>(this AStatusListener dl) where T : class, new() { dl.RemoveListener(typeof(T).FullName); }
/// <summary> /// 枚举版本 /// </summary> /// <param name="name"></param> /// <param name="callback"></param> static public void RemoveListener <T>(this AStatusListener dl, Action <T> callback) where T : class, new() { dl.RemoveListener(typeof(T).FullName, callback); }
/// <summary> /// 枚举版本 /// </summary> /// <param name="name"></param> static public void RemoveListener(this AStatusListener dl, Enum name) { dl.RemoveListener(name.ToString()); }
/// <summary> /// 枚举版本 /// </summary> /// <param name="name"></param> /// <param name="callback"></param> static public void RemoveListener(this AStatusListener dl, Enum name, Action <object> callback) { dl.RemoveListener(name.ToString(), callback); }
static public void RemoveListener(this AStatusListener dl, string name) { dl.RemoveListener(name); }
static public void RemoveListener(this AStatusListener dl, string name, Action <object> callback) { dl.RemoveListener(name, callback); }
static public void RemoveListener <T>(this AStatusListener dl, string name, Action <T> callback) { dl.RemoveListener(name.ToString(), callback); }