예제 #1
0
        public bool EqualsValue(CompositeKey ckOther)
        {
            if (ckOther == null)
            {
                throw new ArgumentNullException("ckOther");
            }

            byte[] pbThis  = CreateRawCompositeKey32();
            byte[] pbOther = ckOther.CreateRawCompositeKey32();
            bool   bResult = MemUtil.ArraysEqual(pbThis, pbOther);

            MemUtil.ZeroByteArray(pbOther);
            MemUtil.ZeroByteArray(pbThis);

            return(bResult);
        }
예제 #2
0
        public bool EqualsValue(CompositeKey ckOther)
        {
            if (ckOther == null)
            {
                throw new ArgumentNullException("ckOther");
            }

            bool bEqual;

            byte[] pbThis = CreateRawCompositeKey32();
            try
            {
                byte[] pbOther = ckOther.CreateRawCompositeKey32();
                bEqual = MemUtil.ArraysEqual(pbThis, pbOther);
                MemUtil.ZeroByteArray(pbOther);
            }
            finally { MemUtil.ZeroByteArray(pbThis); }

            return(bEqual);
        }