Example #1
0
 public static void PrintMessage(string message, NewLineCharacter type = NewLineCharacter.yes)
 {
     if (type == NewLineCharacter.yes)
     {
         Console.WriteLine(message);
     }
     else
     {
         Console.Write(message);
     }
 }
Example #2
0
 public void WriteMessage(string message, NewLineCharacter charReturn = NewLineCharacter.Yes)
 {
     try
     {
         if (charReturn != NewLineCharacter.Yes)
         {
             Console.Write(message);
         }
         else
         {
             Console.WriteLine(message);
         }
     }
     catch
     {
         throw;
     }
 }