예제 #1
0
        public virtual bool Equals(IPostParameter other)
        {
            var eq = other as PostParameter;

            if (eq == null)
            {
                return(false);
            }

            return(Name == other.Name && Value == eq.Value);
        }
예제 #2
0
        public override bool Equals(IPostParameter obj)
        {
            var parameter = obj as BytePostParameter;

            if (parameter == null)
            {
                return(false);
            }

            var v = (byte[])Value;

            return(Name == obj.Name && v.SequenceEqual((byte[])parameter.Value));
        }