{{Quickfixn}} Equals and Hashcode for fields
Mike Gatny
mgatny at connamara.com
Wed Nov 5 07:02:02 PST 2014
On Wed, Nov 5, 2014 at 8:31 AM, Staffan Ulfberg <staffan at ulfberg.se> wrote:
> Hi,
>
> In quickfixj, fields override the Equals and Hashcode methods which is
> often useful (I could give examples but I'm sure they are pretty obvious).
> Not having them is not really a problelm (since Dictionaries etc have
> constructors that take the IEqualityComparer to use), but for people that
> migrate from quickfixj (like me) and possible also for people that just
> assume that Equals on FIX fields "just works" this is confusing.
>
> I would suggest these methods are implemented to perform a comparison of
> the tag number and value by overriding them in the FieldBase class.
>
I think this is a good idea. In general, one of the main goals of qf/n is
to allow developers to write idiomatic .NET code.
--
Mike Gatny
Connamara Systems, LLC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20141105/148e2af8/attachment.htm>
More information about the Quickfixn
mailing list