示例#1
0
            /// <summary>
            /// Removes the provided delegate from the OnMessageReceived Event
            /// </summary>
            /// <param name="del">Delegate to remove</param>
            public bool UnregisterDelegate(ReceivedNetworkMessageDelegate <T> del)
            {
                if (OnMessageReceived.GetInvocationList().Search(del) != -1)
                {
                    OnMessageReceived -= del;
                    return(true);
                }

                return(false);
            }