diff --git a/Tank/Tank/ObjectComparable.cs b/Tank/Tank/ObjectComparable.cs new file mode 100644 index 0000000..0ec5799 --- /dev/null +++ b/Tank/Tank/ObjectComparable.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tank.DrawingObjects; +using Tank.Generics; + +namespace Tank +{ + internal class ObjectComparable : IComparer + { + public int Compare(TanksGenericStorage? x, TanksGenericStorage? y) { + if (x == null) + { + return 1; + } + if (y == null) + { + return 1; + } + return 0; + } + } +}