public override bool Equals (object obj) { TransferDataType t = obj as TransferDataType; return t != null && t.id == id; }