create lab 8
This commit is contained in:
parent
e31bdb63d5
commit
25b458f9e9
@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using ProjectElectricLocomotive.DrawingObjects;
|
||||||
|
using ProjectElectricLocomotive.Entities;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
|
||||||
|
|
||||||
|
namespace ProjectElectricLocomotive.Generics
|
||||||
|
{
|
||||||
|
internal class DrawingLocoEqutables : IEqualityComparer<DrawingLocomotive?>
|
||||||
|
{
|
||||||
|
public bool Equals(DrawingLocomotive? x, DrawingLocomotive? y)
|
||||||
|
{
|
||||||
|
if (x == null || x.EntityLocomotive == null)
|
||||||
|
throw new ArgumentNullException(nameof(x));
|
||||||
|
|
||||||
|
if (y == null || y.EntityLocomotive == null)
|
||||||
|
throw new ArgumentNullException(nameof(y));
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user