Created
March 8, 2018 07:44
-
-
Save gashupl/a44dc1aa95d613f6ca9a7154e00d2d2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static Guid ToGuid(int value) | |
| { | |
| byte[] bytes = new byte[16]; | |
| BitConverter.GetBytes(value).CopyTo(bytes, 0); | |
| return new Guid(bytes); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment