public void unBindHandler(WealthValueOnChangeEvent handler) { if (this.handlers.Contains(handler)) { this.handlers.Remove(handler); } }
public void bindHandler(WealthValueOnChangeEvent handler) { if (this.handlers == null) { this.handlers = new List<WealthValueOnChangeEvent>(); } if (!this.handlers.Contains(handler)) { this.handlers.Add(handler); } }