Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
Convert string to GUID and GUID to old string. vise versa
Arvind Singh Baghel
7y
409
1
Reply
I have created guid from a string using below code:
private Guid GetGuid(string input)
{
byte[] inputBytes = Encoding.Default.GetBytes(input);
Guid hashGuid = new Guid(inputBytes);
return hashGuid;
}
suppose i given input parameter "Arvind" and got guid like: 77f92c53-38af-42f6-8289-fddbd32f228d
now i want to convert this guid "77f92c53-38af-42f6-8289-fddbd32f228d" back to my original string which is "Arvind" . is there any way?
Thaks,
Arvind
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Foreach loop in datagrid
Validate if the uppercase key is active or not C #