BotGenerator/Generator/StringToolsExtensions.cs

15 lines
299 B
C#
Raw Normal View History

2021-08-12 16:52:06 +01:00
using System;
using System.Collections.Generic;
namespace Generator
{
public static class StringToolsExtensions
{
public static void AddUnique(this IList<string> self, string item)
{
if (!self.Contains(item))
self.Add(item);
}
}
}