36 lines
954 B
C#
36 lines
954 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WarmlyLocomotive.Generics;
|
|
|
|
namespace WarmlyLocomotive
|
|
{
|
|
internal class DrawningEqutables : IEqualityComparer<WarmlyLocomotiveGenericStorage?>
|
|
{
|
|
public bool Equals(WarmlyLocomotiveGenericStorage? x, WarmlyLocomotiveGenericStorage? y)
|
|
{
|
|
if (x == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(x));
|
|
}
|
|
if (y == null)
|
|
{
|
|
throw new ArgumentNullException(nameof(y));
|
|
}
|
|
if (x.Keys.Count != y.Keys.Count)
|
|
{
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
public int GetHashCode([DisallowNull] WarmlyLocomotiveGenericStorage? obj)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|
|
|