help with my code it does not want to compile
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GenericUse
{
class Gen<T,U>
{
public T t;
public U u;
public Gen(T _t, U _u)
{
t = _t;
u = _u;
}
static void Main()
{
Gen<string, string> ao = new Gen<string, string>("Hello,", "World");
Console.WriteLine(ao.t + ao.u);
}
}
}
sorry the error message is GenericUse.exe does not contain a static 'Main' method sui
Quote:
Originally Posted by
Salem
And your error messages are?
Don't just dump the code.
the error message is :GenericUse.exe does not contain a static 'Main' method suitable for an entry point