Check out example codes for "generate guid c#". It will help you in understanding the concepts better.

Code Example 1

Guid g = Guid.NewGuid();
string guid = Guid.NewGuid().ToString();

Code Example 2

// If you already have a string representation of the Guid, you can do this:

Guid g = new Guid("11223344-5566-7788-99AA-BBCCDDEEFF00");

// And if you want a brand new Guid then just do

Guid g = Guid.NewGuid();

Learn ReactJs, React Native from akashmittal.com