internal string ToHtml()
 {
     if (IsInfinityInterval)
     {
         if (WichSide)
         {
             return($"(-∞ {Border.ToHTML()}{(BorderIsIncluded ? "]" : ")")}");
         }
         else
         {
             return($"{(BorderIsIncluded ? "[" : "(")}{Border.ToHTML()} +∞)");
         }
     }
     else
     {
         if (LeftBorder.Equals(RightBorder) && LeftIsIncluded && RightIsIncluded)
         {
             return($"{{{LeftBorder.ToHTML()}}}");
         }
         else
         {
             return($"{(LeftIsIncluded ? "[" : "(")}{LeftBorder.ToHTML()} {RightBorder.ToHTML()}{(RightIsIncluded ? "]" : ")")}");
         }
     }
 }