How to use WriteLine without specifying Console in C#

1 Answer

0 votes
using static System.Console;

namespace ConsoleApplication_C_Sharp
{
     class Program
    {
        static void Main(string[] args)
        {
            WriteLine("c#");
        }
    }
}


/*
run:
 
c#
 
*/

 



answered Aug 6, 2018 by avibootz

Related questions

1 answer 267 views
1 answer 244 views
1 answer 237 views
1 answer 272 views
1 answer 221 views
221 views asked Sep 4, 2020 by avibootz
1 answer 242 views
1 answer 272 views
...