Пример #1
0
        public override string ToString()
        {
            var sb = new StringBuilder("ColumnDef(");

            if ((Name != null))
            {
                sb.Append(", Name: ");
                Name.ToString(sb);
            }
            if ((Validation_class != null))
            {
                sb.Append(", Validation_class: ");
                Validation_class.ToString(sb);
            }
            if (__isset.index_type)
            {
                sb.Append(", Index_type: ");
                Index_type.ToString(sb);
            }
            if ((Index_name != null) && __isset.index_name)
            {
                sb.Append(", Index_name: ");
                Index_name.ToString(sb);
            }
            if ((Index_options != null) && __isset.index_options)
            {
                sb.Append(", Index_options: ");
                Index_options.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if ((Name != null))
                {
                    hashcode = (hashcode * 397) + Name.GetHashCode();
                }
                if ((Validation_class != null))
                {
                    hashcode = (hashcode * 397) + Validation_class.GetHashCode();
                }
                if (__isset.index_type)
                {
                    hashcode = (hashcode * 397) + Index_type.GetHashCode();
                }
                if ((Index_name != null) && __isset.index_name)
                {
                    hashcode = (hashcode * 397) + Index_name.GetHashCode();
                }
                if ((Index_options != null) && __isset.index_options)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Index_options);
                }
            }
            return(hashcode);
        }