That's when you use a class
or a struct
:
class User
public string IP { get; set; }
public string ConnId { get; set; }
public string Nick { get; set; }
}
And use this in a list:
List<User> users = new List<User>();
Now you can create a user as such:
users.Add(new User { IP = "some ip", ConnId = "some id", Nick ="Jeroen" });
Or if you hate classes and want to go rough:
var users = new List<Tuple<string, string, string>>();
users.Add(new Tuple<"some ip", "some id", "Jeroen">);
This last option is particularly easy when you'll just use it in one place and don't expect any changes to it. It allows you to quickly group some related data.