I am having a problem generating a GUID for a string - for example:
Guid g = New Guid(\"Mehar\");
How can I compute a GUID for \"Meha
I think you have a misunderstanding of what a Guid actually is. There is no Guid representation of a string such as "Mehar".
The reason there is a new Guid(String s)
overload is so that you can create a guid from a typical string representation of one, such as "00000000-0000-0000-0000-000000000000".
See the wiki article for more information on what a Guid actually is.
http://en.wikipedia.org/wiki/Globally_Unique_Identifier