[Mono-dev] [PATCH] System.Transactions.Transaction

Raja R Harinath rharinath at novell.com
Mon Nov 20 07:36:49 EST 2006


Hi,

"Matthijs ter Woord" <matthijsterwoord at gmail.com> writes:

>  		[MonoTODO]
> -		public static bool op_Inequality (Transaction x, Transaction y)
> +		public static bool operator != (Transaction x, Transaction y)
>  		{
> -			if (x == null && y == null)
> -				return false;
> -			if (x == null || y == null)
> +			if (Object.ReferenceEquals(x, null) && Object.ReferenceEquals(y, null))
> +			    return false;
> +			if (Object.ReferenceEquals(x, null) || Object.ReferenceEquals(y, null))
>  				return true;
>  
>  			return ! x.Equals (y);
>  		}
> +		
> +		public static bool operator == (Transaction x, Transaction y)
> +		{
> +			return !(x != y);
> +		}

I committed a somewhat different fix.

Thanks,
- Hari



More information about the Mono-devel-list mailing list