Hi,
I was wondering if anyone knows a nice way of getting a collection of all users in code behind file? By nice I mean nicer than this:
List list = new List();
UserSid us;
for (int i = Int32.MinValue; i < Int32.MaxValue; i++)
{
us = UserSid.Load(i);
if (us != null)
{
list.Add(us);
}
}
I'll welcome any help. Thanks in advance.
List list = new List();
UserSid us;
for (int i = Int32.MinValue; i < Int32.MaxValue; i++)
{
us = UserSid.Load(i);
if (us != null)
{
list.Add(us);
}
}
I'll welcome any help. Thanks in advance.