Skip to content

Instantly share code, notes, and snippets.

@Ultrafeel
Ultrafeel / GetHashesNonUnique.cs
Last active October 8, 2021 21:15
Parallel.For
using System;
using System.Diagnostics;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
Console.WriteLine($"***** GetHashCode not Unique with Anonymous Types *****\n");
var etalon = new { CurrentSpeed = 55, SomeBool = true };
Console.WriteLine($"Etalon properties: CurrentSpeed: {etalon.CurrentSpeed}, SomeBool:{etalon.SomeBool}");