>> g = Guid(enc.GetBytes(myString1)) >> g = Guid(myString1);
I figured it out. The new keyword is needed. g = new Guid(enc.GetBytes(myString1)) g = new Guid(myString1); I tried this both ways but the guids are not the same. Here is my code: Encoding enc = Encoding.ASCII; Guid guid = Guid.NewGuid(); string encoded = Convert.ToBase64String(guid.ToByteArray()); string myString1 = enc.GetString(Convert.FromBase64String(encoded)); Guid g = new Guid(enc.GetBytes(myString1)); //This statement gives an error. //Guid g = new Guid(myString1); Any ideas on how to correct this? Thanks, =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
