Goedel.Cryptography.Secret.Equals C# (CSharp) Method

Equals() public method

Test for equality
public Equals ( System obj ) : bool
obj System The secret to test against
return bool
        public override bool Equals(System.Object obj) {
            if (obj == null) {
                return false;
                }
            Secret p = obj as Secret;
            if ((System.Object)p == null) {
                return false;
                }
            if (KeyBytes != p.KeyBytes) {
                return false;
                }
            for (int i = 0; i < KeyBytes; i++) {
                if (Key[i] != p.Key[i]) {
                    return false;
                    }
                }

            return true;
            }