what is the command for compiling and running the c sharp program?
I wrote a program and compiled it using mcs filename.cs
But I don't know how to run the program. I tried mono filename.exe but didn't work out. So need help.
Printable View
what is the command for compiling and running the c sharp program?
I wrote a program and compiled it using mcs filename.cs
But I don't know how to run the program. I tried mono filename.exe but didn't work out. So need help.
can we define the variables in c sharp like this?i am looking through some codes here and while compiling got the error saying"are you missing a using directive or an assembly reference cs0246"Code:WeatherStation station, DateTime predictionDate
and it is showing error for this variables. I tried to remove it but the program have used the variable name station and predictionDate in the program. So can you help me out?
You separate statements with semicolon ( ; ), not comma ( , )
so:
Code:WeatherStation station;
DateTime predictionDate;
i tried but it is still showing the same errors. like the program is using it like this
Code:static void Main(WeatherStation station, DateTime predictionDate)
Main does not take custom parameters.
Code:static void Main()
{
//...
}