public virtual bool equals(Message message) { if (FieldCount != message.FieldCount) { return(false); } for (int i = 1; i < message.FieldCount; i++) { if (message.GetValue(i) == null) { if (GetValue(i) == null) { continue; } return(false); } else if (!message.GetValue(i).Equals(GetValue(i))) { return(false); } } return(true); }
public virtual bool equals(Message message) { if (FieldCount != message.FieldCount) return false; for (int i = 1; i < message.FieldCount; i++) if (message.GetValue(i) == null) { if (GetValue(i) == null) { continue; } return false; } else if (!message.GetValue(i).Equals(GetValue(i))) { return false; } return true; }