In earlier version of .NET framework we don’t have Guid.Parse method Now we have an Guid.Parse method in .NET Framework and it’s work like any parse method. Let’s see it by an example. Let’s create console application for that.
class Program{ static void Main(string[] args) { string newID = "f718943d-757d-4975-947b-3dbff1205be6"; Guid myGuId = Guid.Parse(newID); Console.WriteLine(myGuId.ToString()); Console.ReadLine(); }}
and as expected here is the out put for that.
That’s is it’s cool. Stay tuned for more..Happy programming..
Technorati Tags: Guid,C#.NET CodeProject