0.8.2
This commit is contained in:
parent
977c6de6f6
commit
6d6617ecab
@ -39,7 +39,7 @@ namespace SelfPropelledArtilleryUnit.Basic
|
||||
if (obj == null || collect == null)
|
||||
return false;
|
||||
|
||||
return collect?.collection.Insert(obj) ?? false;
|
||||
return (bool)collect?.collection.Insert(obj, new DrawiningMillitaryUnitEqutables());
|
||||
}
|
||||
public static T? operator -(MilitaryGenrericCollection<T, U> collect,
|
||||
int pos)
|
||||
|
@ -28,7 +28,7 @@ namespace SelfPropelledArtilleryUnit.Basic
|
||||
public bool Insert(T MilitaryUnit, int index, IEqualityComparer<T>? equal = null)
|
||||
{
|
||||
if (!(index >= 0 && index <= Count && places.Count < maxCount))
|
||||
return false;
|
||||
throw new UnitNotFoundException(index);
|
||||
if (places.Count == maxCount)
|
||||
throw new StorageOverflowException(index);
|
||||
if (equal != null && places.Contains(MilitaryUnit, equal))
|
||||
|
Loading…
Reference in New Issue
Block a user