Пример #1
0
        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);
        }
Пример #2
0
        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());
        }
Пример #3
0
 // ... various functions ...
 template <class T> T GetRotatedCopy(VDouble angle)
 {
     // ... create a new instance of ImageMatrix and return it.
 }