Testing using a guid... how do I set the variable to a Guid?
.net-2.0, c#, guid, variables
Solution
Guid x = new Guid("5fb7097c-335c-4d07-b4fd-000004e2d28c");
Problem
I am testing some db layer functions. In one, I am simulating the user passing in the id (a GUID). I have hardcoded the guid for testing purposes but can't seem to assign it to a variable, as ridiculous as that sounds. In C# for a .NET 2.0 app. I have tried several ways, all failed. What is the proper way to set a guid to a variable? Here is the code... ``` Guid x = "5fb7097c-335c-4d07-b4fd-000004e2d28c"; ```