コード例 #1
0
 public bool Equals(TestSystemFont other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (Width != other.Width)
     {
         return(false);
     }
     if (Height != other.Height)
     {
         return(false);
     }
     if (LineSpacing != other.LineSpacing)
     {
         return(false);
     }
     if (!Spacing.Equals(other.Spacing))
     {
         return(false);
     }
     if (YOffset != other.YOffset)
     {
         return(false);
     }
     return(string.Equals(Name, other.Name));
 }
コード例 #2
0
ファイル: Presenter.cs プロジェクト: marcomvidal/TicTacToe
        public void DashedLine(int lenght, Spacing spacing)
        {
            if (spacing.Equals(Spacing.Before))
            {
                Console.WriteLine();
            }

            for (int dash = 0; dash < lenght; dash++)
            {
                Console.Write("-");
            }

            if (spacing.Equals(Spacing.After))
            {
                Console.WriteLine();
            }
        }