예제 #1
0
        public override bool Equals(object obj)
        {
            UniversalEventHandle other = obj as UniversalEventHandle;

            return(other != null && (object.ReferenceEquals(this, obj) ||
                                     (object.Equals(this.Source, other.Source) &&
                                      object.Equals(this.EventInfo, other.EventInfo) &&
                                      object.Equals(this.PropertyChangedHandle, other.PropertyChangedHandle) &&
                                      object.Equals(this.Callback, other.Callback))));
        }
예제 #2
0
        public UniversalEventCallbackArgs(UniversalEventHandle handle, object[] args)
        {
            if (handle == null)
            {
                throw new ArgumentNullException("handle");
            }
            if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            this.Handle    = handle;
            this.EventArgs = args;
        }
예제 #3
0
        public UniversalEventCallbackArgs(UniversalEventHandle handle, PropertyChangedCallbackArgs args)
        {
            if (handle == null)
            {
                throw new ArgumentNullException("handle");
            }
            if (args == null)
            {
                throw new ArgumentNullException("args");
            }

            this.Handle = handle;
            this.PropertyChangedCallbackArgs = args;
        }