COMMUNITY: How to properly ask a question on Forums
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Arvind Singh Baghel
595
1.7k
72.5k
Convert string to GUID and GUID to old string. vise versa
Mar 9 2017 7:08 AM
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
Reply
Answers (
3
)
Foreach loop in datagrid
Validate if the uppercase key is active or not C #
"