if I execute this code, what will happen? Will my system crash or it throws an exception?
static void Main(string[] args)
{
List<string> vs = new List<string>();
List<string> vs2 = new List<string>();
List<string> vs3 = new List<string>();
List<string> vs4 = new List<string>();
List<string> vs5 = new List<string>();
List<string> vs6 = new List<string>();
while (true)
{
vs.Add(new Random().NextDouble().ToString());
vs2.Add(new Random().NextDouble().ToString());
vs3.Add(new Random().NextDouble().ToString());
vs4.Add(new Random().NextDouble().ToString());
vs5.Add(new Random().NextDouble().ToString());
vs6.Add(new Random().NextDouble().ToString());
}
}
Aucun commentaire:
Enregistrer un commentaire