
Untitled
By: a guest on
Jun 27th, 2012 | syntax:
None | size: 0.52 KB | hits: 6 | expires: Never
how to create vector in c#
string input = "server1,server2,server3";
List<string> serverNames = input.Split(',').ToList();
List<string> serverNames = new List<string>();
foreach (var server in GetAvailableServers())
{
if (server.IsAvailable)
{
serverNames.Add( server );
}
}
List<string> servers = new List<string>();
servers.Add("http://stackoverflow.com");
List<string> names = new List<string>();
names.Add("John");
names.Add("Mike");
foreach (string name in names)
{
evaluate(name);
}