[Mono-devel-list] Comparing against null

Marcus mathpup at mylinuxisp.com
Thu Apr 7 23:21:01 EDT 2005


Just to check, I had someone compile your test under MS csc version, and the 
code compiled by csc does call operator==. So this would really seem like an 
mcs bug.


On Thursday 07 April 2005 4:12 am, Joe Ante wrote:
> Hi,
>
> Is there a way to compare an object against null with a user defined
> operator?
>
> In mono 1.0.4 i did get operator == called even if comparing against null.
> In mono 1.1.6 that doesn't happen anymore.
> Is this according to the standard? If it is how do i overload comparison
> against null?



More information about the Mono-devel-list mailing list