public override int GetHashCode()
        {
            int hash = 1;

            if (chaincodeSpec_ != null)
            {
                hash ^= ChaincodeSpec.GetHashCode();
            }
            if (CodePackage.Length != 0)
            {
                hash ^= CodePackage.GetHashCode();
            }
            if (ExecEnv != global::Protos.ChaincodeDeploymentSpec.Types.ExecutionEnvironment.Docker)
            {
                hash ^= ExecEnv.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (chaincodeSpec_ != null)
            {
                hash ^= ChaincodeSpec.GetHashCode();
            }
            if (effectiveDate_ != null)
            {
                hash ^= EffectiveDate.GetHashCode();
            }
            if (CodePackage.Length != 0)
            {
                hash ^= CodePackage.GetHashCode();
            }
            if (ExecEnv != 0)
            {
                hash ^= ExecEnv.GetHashCode();
            }
            return(hash);
        }