public void addToResponseDelegates(ISocketResponse callBack) { bool isExist = false; foreach (ISocketResponse _callBack in _responseCallBacks) { if (_callBack == callBack) { isExist = true; break; } } if (!isExist) _responseCallBacks.Add(callBack); }
public void removeFromResponseDelegates(ISocketResponse callBack) { _responseCallBacks.Remove(callBack); }