Fixed compiler warning for not implementing Equals or GetHashCode