PersonCharactersCopyCount
This commit is contained in:
@ -7,9 +7,9 @@ public interface IItem
|
||||
GetWrongYearFlag(isWrongYear);
|
||||
static string GetWrongYearFlag(bool? isWrongYear) => isWrongYear is null ? "#" : isWrongYear.Value ? "~" : "=";
|
||||
|
||||
(List<Models.Item>, int) TestStatic_GetMerged(List<Models.Item> itemsA, List<Models.Item> itemsB) =>
|
||||
List<Models.Item> TestStatic_GetMerged(List<Models.Item> itemsA, List<Models.Item> itemsB) =>
|
||||
GetMerged(itemsA, itemsB);
|
||||
static (List<Models.Item>, int) GetMerged(List<Models.Item> itemsA, List<Models.Item> itemsB) =>
|
||||
static List<Models.Item> GetMerged(List<Models.Item> itemsA, List<Models.Item> itemsB) =>
|
||||
Item.GetMerged(itemsA, itemsB);
|
||||
|
||||
}
|
@ -3,9 +3,8 @@ namespace View_by_Distance.Shared.Models.Stateless.Methods;
|
||||
internal abstract class Item
|
||||
{
|
||||
|
||||
internal static (List<Models.Item>, int) GetMerged(List<Models.Item> itemsA, List<Models.Item> itemsB)
|
||||
internal static List<Models.Item> GetMerged(List<Models.Item> itemsA, List<Models.Item> itemsB)
|
||||
{
|
||||
int result = 0;
|
||||
List<Models.Item> results = new();
|
||||
List<string> collection = new();
|
||||
foreach (Models.Item item in itemsA)
|
||||
@ -17,10 +16,9 @@ internal abstract class Item
|
||||
{
|
||||
if (collection.Contains(item.ImageFileHolder.FullName))
|
||||
continue;
|
||||
result++;
|
||||
results.Add(item);
|
||||
}
|
||||
return new(results, result);
|
||||
return results;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user