+ 2

Text design in C#

using System; namespace SoloLearn { class Program { static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Blue; Console.Write("hi"); } } } Why that text isn’t blue? But In VS Professional Edition It is blue!

7th Mar 2022, 6:58 AM
aewerdev
aewerdev - avatar
4 Answers
+ 5
Daniil Pivovarov yes Sololearn has a limited sandbox and certain headers and libraries are restricted.
29th Mar 2022, 5:47 PM
BroFar
BroFar - avatar
+ 2
Same reason you cant get input in real time Sololearn terminal is not an actual terminal
7th Mar 2022, 7:04 AM
Raul Ramirez
Raul Ramirez - avatar
+ 2
You can't use any Gui modules in Sololearn since its compiler is a console application.
7th Mar 2022, 7:25 AM
Simba
Simba - avatar
+ 1
Maybe Sololearn has not full C# IDE
7th Mar 2022, 7:01 AM
aewerdev
aewerdev - avatar