private readonly int _value;
public B(int value) => _value = value;
public static bool operator == (B first, B other) => first.Equals(other);
public static bool operator != (B first, B other) => !(first == other);
public static void Main()
Console.WriteLine(new B(1) == new B(1));
Console.WriteLine(new B(1) == new B(2));