/// <summary>Two FieldTypeInfos are equal if ach of their fields matches</summary> public override bool Equals(object o) { if (this == o) { return(true); } if (!(o is Org.Apache.Hadoop.Record.Meta.FieldTypeInfo)) { return(false); } Org.Apache.Hadoop.Record.Meta.FieldTypeInfo fti = (Org.Apache.Hadoop.Record.Meta.FieldTypeInfo )o; // first check if fieldID matches if (!this.fieldID.Equals(fti.fieldID)) { return(false); } // now see if typeID matches return(this.typeID.Equals(fti.typeID)); }