Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/Foundation/NSUrl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ public bool SetResource (NSString nsUrlResourceKey, NSObject value)
return SetResourceValue (value, nsUrlResourceKey, out error);
}

public static bool operator == (NSUrl x, NSUrl y)
{
if ((object) x == (object) y) // If both are null, or both are same instance, return true.
return true;

if (((object) x == null) || ((object) y == null)) // If one is null, but not both, return false.
return false;

return x.Equals (y);
}

public static bool operator != (NSUrl x, NSUrl y)
{
return !(x == y);
}
}

#if !XAMCORE_3_0
Expand Down