This commit is contained in:
Chomp 2021-08-13 16:23:16 +01:00
parent 085effb080
commit 98e3cf15cd

View File

@ -1,10 +1,12 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
namespace Generator
{
public static class StringToolsExtensions
{
/// <summary>
/// Add a string to a list only if it doesnt already exist
/// </summary>
public static void AddUnique(this IList<string> self, string item)
{
if (!self.Contains(item))