G
Guest
Hi folks,
In C++ I was able to initialize variables in the constructor like so -
private int a, b, c;
public myClass() : a(0), b(0), c(0)
{
}
Is this possible in C#? Tried it and it didnt seem to work.
Thanks,
David
In C++ I was able to initialize variables in the constructor like so -
private int a, b, c;
public myClass() : a(0), b(0), c(0)
{
}
Is this possible in C#? Tried it and it didnt seem to work.
Thanks,
David