Пример #1
0
 public override int GetHashCode() {
   int hash = 1;
   if (Name.Length != 0) hash ^= Name.GetHashCode();
   if (Device.Length != 0) hash ^= Device.GetHashCode();
   if (Id != 0) hash ^= Id.GetHashCode();
   hash ^= inputInfo_.GetHashCode();
   hash ^= outputInfo_.GetHashCode();
   if (TemporaryMemorySize != 0L) hash ^= TemporaryMemorySize.GetHashCode();
   if (HostTempMemorySize != 0L) hash ^= HostTempMemorySize.GetHashCode();
   if (DeviceTempMemorySize != 0L) hash ^= DeviceTempMemorySize.GetHashCode();
   if (HostPersistentMemorySize != 0L) hash ^= HostPersistentMemorySize.GetHashCode();
   if (DevicePersistentMemorySize != 0L) hash ^= DevicePersistentMemorySize.GetHashCode();
   if (ComputeCost != 0L) hash ^= ComputeCost.GetHashCode();
   if (ComputeTime != 0L) hash ^= ComputeTime.GetHashCode();
   if (MemoryTime != 0L) hash ^= MemoryTime.GetHashCode();
   if (IsFinal != false) hash ^= IsFinal.GetHashCode();
   hash ^= controlInput_.GetHashCode();
   return hash;
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Asr.Length != 0)
            {
                hash ^= Asr.GetHashCode();
            }
            if (Transcript.Length != 0)
            {
                hash ^= Transcript.GetHashCode();
            }
            if (IsFinal != false)
            {
                hash ^= IsFinal.GetHashCode();
            }
            if (Confidence != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Confidence);
            }
            if (Answer.Length != 0)
            {
                hash ^= Answer.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (ImageYesNo.Length != 0)
            {
                hash ^= ImageYesNo.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
 public override string ToString()
 {
     return("State:[ " + StateValue.ToString() + " , " + IsFinal.ToString() + " ]");
 }