Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 27th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to create vector in c#
  2. string input = "server1,server2,server3";
  3.  List<string> serverNames = input.Split(',').ToList();
  4.        
  5. List<string> serverNames = new List<string>();
  6.  foreach (var server in GetAvailableServers())
  7.  {
  8.      if (server.IsAvailable)
  9.      {
  10.          serverNames.Add( server );
  11.      }
  12.  }
  13.        
  14. List<string> servers = new List<string>();
  15. servers.Add("http://stackoverflow.com");
  16.        
  17. List<string> names = new List<string>();
  18. names.Add("John");
  19. names.Add("Mike");
  20.  
  21. foreach (string name in names)
  22. {
  23.   evaluate(name);
  24. }