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 159 views
1 answer 143 views
1 answer 136 views
1 answer 166 views
1 answer 125 views
125 views asked Sep 4, 2020 by avibootz
1 answer 153 views
1 answer 164 views
...