forked from chomp/BotGenerator
comments
This commit is contained in:
parent
085effb080
commit
98e3cf15cd
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user