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
|
namespace Generator
|
||||||
{
|
{
|
||||||
public static class StringToolsExtensions
|
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)
|
public static void AddUnique(this IList<string> self, string item)
|
||||||
{
|
{
|
||||||
if (!self.Contains(item))
|
if (!self.Contains(item))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user