Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is GetBreakTypeResponse other &&
                   ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) &&
                   ((BreakType == null && other.BreakType == null) || (BreakType?.Equals(other.BreakType) == true)) &&
                   ((Errors == null && other.Errors == null) || (Errors?.Equals(other.Errors) == true)));
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hashCode = 448496585;

            if (Context != null)
            {
                hashCode += Context.GetHashCode();
            }

            if (BreakType != null)
            {
                hashCode += BreakType.GetHashCode();
            }

            if (Errors != null)
            {
                hashCode += Errors.GetHashCode();
            }

            return(hashCode);
        }
Esempio n. 3
0
 protected void ToString(List <string> toStringOutput)
 {
     toStringOutput.Add($"BreakType = {(BreakType == null ? "null" : BreakType.ToString())}");
     toStringOutput.Add($"Errors = {(Errors == null ? "null" : $"[{ string.Join(", ", Errors)} ]")}");
 }