Setup:
Having a dumb day.
I have the following code:
UserRoles = Roles.GetRolesForUser(username);
Problem:
If the username is an empty string ("", the user is not logged in), then when I check the UserRoles value in the direct window, it shows:
{string[0]}
Question:
What is {string[0]} ?
How can I replicate this value to test my code for the case of an insecure user (username == "")?
NOTE. I have Google for this, but to no avail.
source share