(Apologies, this is basically my first C# program, and I'm translating C++)
I defined a "user" struct like this:
struct user
{
string usrnm;
string pw;
}
It is said here that one can create a pseudo typedef in C#
namespace _1._0
{
class Program
{
struct user
{
string usrnm;
string pw;
}
using (userArr = Dictionary<int, user>);
}
}
But this doesn't work; it throws me the error saying:
Invalid token 'using' in class, struct or interface member declaration
and
The type or namespace name 'userArr' could not be found (are you missing a using directive or assembly reference?)
So why doesn't this work, and how can I get it to work?