{{Quickfixn}} Equals and Hashcode for fields
Grant Birchmeier
gbirchmeier at connamara.com
Wed Nov 5 08:33:35 PST 2014
Agreed.
On Wed, Nov 5, 2014 at 9:02 AM, Mike Gatny <mgatny at connamara.com> wrote:
> 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
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
--
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20141105/fcdd511e/attachment.htm>
More information about the Quickfixn
mailing list