Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<Guid> guids = new List<Guid>();
- int count = 0;
- while(true)
- {
- count++;
- Guid temp = Guid.NewGuid();
- if(guids.Contains(temp))
- {
- Console.Out.WriteLine("Duplicate Guid Found");
- Console.Out.WriteLine("Created " + count + " Guids");
- continue;
- }
- guids.Add(temp);
- Console.Out.WriteLine("Created "+count+" Guids");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment