CSharpUtils.Diff.ProcessedItem.Print C# (CSharp) Метод

Print() публичный Метод

public Print ( bool AvoidKeep ) : void
AvoidKeep bool
Результат void
			public void Print(bool AvoidKeep)
			{
				if (AvoidKeep && Action == ActionEnum.Keep) return;

				ConsoleColor Color;
				switch (Action)
				{
					case ActionEnum.Keep: Color = ConsoleColor.White; break;
					case ActionEnum.Delete: Color = ConsoleColor.Red; break;
					case ActionEnum.Insert: Color = ConsoleColor.DarkRed; break;
					default: throw (new NotImplementedException());
				}
				ConsoleUtils.SaveRestoreConsoleColor(Color, () =>
				{
					Console.WriteLine("{0}", this);
				});
			}
Diff.ProcessedItem