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 263 views
1 answer 237 views
1 answer 232 views
1 answer 269 views
1 answer 212 views
212 views asked Sep 4, 2020 by avibootz
1 answer 238 views
1 answer 265 views
...