Making PropertyCollection, PropertyGroupCollection and PropertyTypeCollection return a proper null when FirstOrDefault should return null.

This commit is contained in:
Morten Christensen
2013-04-20 19:47:30 -02:00
parent 082dacf737
commit eeb0e0026a
3 changed files with 424 additions and 13 deletions

View File

@@ -168,19 +168,6 @@ namespace Umbraco.Core.Models.EntityBase
}
}
public static bool operator ==(Entity left, Entity right)
{
if (ReferenceEquals(null, left))
return false;
return left.Equals(right);
}
public static bool operator !=(Entity left, Entity right)
{
return !(left == right);
}
public virtual bool SameIdentityAs(IEntity other)
{
if (ReferenceEquals(null, other))