/// <summary> /// Convert GUID to pair of Int64s, sometimes used in languages without native GUID/UUID implementation (Javascript) /// <para> /// Note that two longs cannot hold GUID larger than ffffffff-ffff-7fff-ffff-ffffffffff7f, /// but that shouldn't be an issue in most realistic use cases /// </para> /// </summary> public static (long, long) ToLongs(this Guid guid) { GuidConverter.GuidToInt64(guid, out var first, out var second); return(first, second); }