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 163 views
1 answer 147 views
1 answer 141 views
1 answer 169 views
1 answer 129 views
129 views asked Sep 4, 2020 by avibootz
1 answer 155 views
1 answer 170 views
...