namespace Mono.Unix {
public struct UnixPipes
-#if NET_2_0
: IEquatable <UnixPipes>
-#endif
{
public UnixPipes (UnixStream reading, UnixStream writing)
{
public override bool Equals (object value)
{
- if (value.GetType() != GetType())
+ if ((value == null) || (value.GetType () != GetType ()))
return false;
UnixPipes other = (UnixPipes) value;
return Reading.Handle == other.Reading.Handle &&