public override bool Equals(object obj) { ManagedInstance other = (ManagedInstance) obj; if (other != null) { return other.name.Equals(name) && other.typeName.Equals(typeName); } return false; }