Esempio n. 1
0
        private static void PrintHugeNumbersTwoStructure(ulong number, uint entityType = 0)
        {
            var someGuid1 = MoreNewerGuidGenerator.ConvertToGuid(number, entityType);
            var someGuid2 = MoreNewerGuidGenerator.ConvertToGuid(number, entityType);

            Console.WriteLine($"{someGuid1} === {someGuid2}");
        }
Esempio n. 2
0
        private static void PrintComparingTwoStructure()
        {
            for (ulong idx = 0; idx <= 20; idx++)
            {
                var someGuid1 = MoreNewerGuidGenerator.ConvertToGuid(idx, 123456789);
                var someGuid2 = MoreNewerGuidGenerator.ConvertToGuid(idx, 987654321);

                var someId1 = MoreNewerGuidGenerator.ConvertToULong(someGuid1);
                var someId2 = MoreNewerGuidGenerator.ConvertToULong(someGuid2);

                Console.WriteLine($"{someId1.id}:{someId1.entityType}");
                Console.WriteLine($"{someId2.id}:{someId2.entityType}");
                Console.WriteLine($"{someGuid1} === {someGuid2}");
            }
        }