Exemple #1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.field_id)
            {
                hashcode = (hashcode * 397) + Field_id.GetHashCode();
            }
            if (__isset.v_int64)
            {
                hashcode = (hashcode * 397) + V_int64.GetHashCode();
            }
            if (__isset.v_double)
            {
                hashcode = (hashcode * 397) + V_double.GetHashCode();
            }
            if ((V_bytes != null) && __isset.v_bytes)
            {
                hashcode = (hashcode * 397) + V_bytes.GetHashCode();
            }
            if ((V_key != null) && __isset.v_key)
            {
                hashcode = (hashcode * 397) + V_key.GetHashCode();
            }
            if ((V_li != null) && __isset.v_li)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(V_li);
            }
            if ((V_lb != null) && __isset.v_lb)
            {
                hashcode = (hashcode * 397) + TCollections.GetHashCode(V_lb);
            }
        }
        return(hashcode);
    }
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.field_id)
            {
                hashcode = (hashcode * 397) + Field_id.GetHashCode();
            }
            if ((Spec_int64 != null) && __isset.spec_int64)
            {
                hashcode = (hashcode * 397) + Spec_int64.GetHashCode();
            }
            if ((Spec_double != null) && __isset.spec_double)
            {
                hashcode = (hashcode * 397) + Spec_double.GetHashCode();
            }
            if ((Spec_bytes != null) && __isset.spec_bytes)
            {
                hashcode = (hashcode * 397) + Spec_bytes.GetHashCode();
            }
            if ((Spec_key != null) && __isset.spec_key)
            {
                hashcode = (hashcode * 397) + Spec_key.GetHashCode();
            }
            if ((Spec_li != null) && __isset.spec_li)
            {
                hashcode = (hashcode * 397) + Spec_li.GetHashCode();
            }
            if ((Spec_lb != null) && __isset.spec_lb)
            {
                hashcode = (hashcode * 397) + Spec_lb.GetHashCode();
            }
        }
        return(hashcode);
    }