implement IEquatable<T> in bean classes for c# port