public static void Main()
var sqliteGuidString = "8A464F7F4BB211EC8C6200224802C5B9";
var realDotNetGuid = new Guid(StringToByteArray(sqliteGuidString));
var backToSqliteString = BitConverter.ToString(realDotNetGuid.ToByteArray()).Replace("-","");
Console.WriteLine("Sqlite guid string "+sqliteGuidString+" is this .net guid "+realDotNetGuid.ToString());
Console.WriteLine("Back to Sqlite guid string "+backToSqliteString);
public static byte[] StringToByteArray(string hex) {
return Enumerable.Range(0, hex.Length)
.Select(x => Convert.ToByte(hex.Substring(x, 2), 16))