Create Guid : Guid « Development Class « C# / C Sharp

Create Guid

using System;
public class MainClass {
    public static void Main() {

        Guid g1 = new Guid("{0d57629c-7d6e-4847-97cb-9e2fc25083fe}");
        Guid g2 = new Guid("0d57629c7d6e484797cb9e2fc25083fe");
        Console.WriteLine(g1 == g2);  // True

Related examples in the same category

1.Converts the string representation of a Guid toits Guid equivalent.
2.This code example demonstrates the Guid.NewGuid() method.
3.Parse GUID
4.Convert Guid To Guid Binary String
5.Is valid GUID
6.Use Regular expression to check the Guid