1

I'm trying to map a table, where one of the column is a binary array (which is a Java UUID), to a C# class.

I would like to read the byte array and return a string representation of the UUID. Just wondering what's a good place to start.

1 Answer 1

1

If you've already got it as a byte array, then just call new Guid(bytes) to get a Guid; you can call ToString on that to convert it to a string if you particularly need to. (I'd suggest leaving it as a Guid though other than for diagnostics.)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.