create lab 8

This commit is contained in:
ekallin 2023-12-06 18:57:51 +04:00
parent e31bdb63d5
commit 25b458f9e9

View File

@ -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));
}
}
}