13 lines
288 B
C#
13 lines
288 B
C#
namespace Engine.Core;
|
|
|
|
public static class IdentifiableExtensions
|
|
{
|
|
public static bool IsIdentical(this IIdentifiable? left, IIdentifiable? right)
|
|
{
|
|
if (left == null || right == null)
|
|
return false;
|
|
|
|
return left?.Id?.CompareTo(right?.Id) == 0;
|
|
}
|
|
}
|