private string[] GetRoles()
{
string[] foo = {"Test"};
return foo;
}
The above compiles, but...
private string[] GetRoles()
{
return {"Test"};
}
Does not.
Replacing it with:
return new string[] { "Test" };
Will obviously compile though. Is this inconsistancy or am i being stupid, or am i just wrong :S.