How to generate a GUID

  • Language – CSharp
  • Type – Back-end
  • Context – Creating GUID to use
  • Snippet
	using System;
	namespace DemoApplication{
	   class Program{
		  static void Main(string[] args){
			 Guid demoGuid = Guid.NewGuid();
			 Console.WriteLine(demoGuid);
			 Console.WriteLine(Guid.NewGuid());
			 Console.ReadLine();
		  }
	   }
	}