The following example calls the NewGuid method to create a Guid value, and then calls the method to represent the Guid value as a byte array. It then displays both values to the console. Finally, it instantiates a new Guid value from the byte array and calls its Equals(Guid) method to show that the two Guid values are identical. C#.