public static void Main()
TestClass[] a1 = { new ("1", 1), new ("2", 2), new ("3", 3) };
TestClass[] a2 = { new ("1", 2), new ("2", 3), new ("3", 4) };
bool propertiesAreEqual =
a1.Select(element => element.PropertyToCompare)
a2.Select(element => element.PropertyToCompare));
Console.WriteLine(propertiesAreEqual);
record TestClass(string PropertyToCompare, int SomeOtherProperty);