Check out example codes for "c# console writeline color". It will help you in understanding the concepts better.
Code Example 1
Console.BackgroundColor = ConsoleColor.Green;
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.Clear();
//green on green
Console.WriteLine("yo");
Console.ReadLine();
Code Example 2
// C# program to illustrate the
// ForegroundColor property
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GFG {
class Program {
static void Main(string[] args)
{
// Display current Foreground color
Console.WriteLine("Default Foreground Color: {0}",
Console.ForegroundColor);
// Set the Foreground color to blue
Console.ForegroundColor
= ConsoleColor.Blue;
// Display current Foreground color
Console.WriteLine("Changed Foreground Color: {0}",
Console.ForegroundColor);
}
}
}
Learn ReactJs, React Native from akashmittal.com