public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((Key != null))
                {
                    hashcode = (hashcode * 397) + Key.GetHashCode();
                }
                hashcode = (hashcode * 397) + VType.GetHashCode();
                if ((VStr != null) && __isset.vStr)
                {
                    hashcode = (hashcode * 397) + VStr.GetHashCode();
                }
                if (__isset.vDouble)
                {
                    hashcode = (hashcode * 397) + VDouble.GetHashCode();
                }
                if (__isset.vBool)
                {
                    hashcode = (hashcode * 397) + VBool.GetHashCode();
                }
                if (__isset.vLong)
                {
                    hashcode = (hashcode * 397) + VLong.GetHashCode();
                }
                if ((VBinary != null) && __isset.vBinary)
                {
                    hashcode = (hashcode * 397) + VBinary.GetHashCode();
                }
            }
            return(hashcode);
        }
Example #2
0
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (value == null)
     {
         return(Brushes.DarkOrange);
     }
     if (value is string VStr && VStr.IsNullOrWhiteSpace())
     {
         return(Brushes.DarkOrange);
     }
     return(Brushes.Green);
 }
        public override string ToString()
        {
            var sb = new StringBuilder("Tag(");

            if ((Key != null))
            {
                sb.Append(", Key: ");
                Key.ToString(sb);
            }
            sb.Append(", VType: ");
            VType.ToString(sb);
            if ((VStr != null) && __isset.vStr)
            {
                sb.Append(", VStr: ");
                VStr.ToString(sb);
            }
            if (__isset.vDouble)
            {
                sb.Append(", VDouble: ");
                VDouble.ToString(sb);
            }
            if (__isset.vBool)
            {
                sb.Append(", VBool: ");
                VBool.ToString(sb);
            }
            if (__isset.vLong)
            {
                sb.Append(", VLong: ");
                VLong.ToString(sb);
            }
            if ((VBinary != null) && __isset.vBinary)
            {
                sb.Append(", VBinary: ");
                VBinary.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }