SW 중심대학 OSS GIT 서버
박건태, 이승준, 고기완, 이준호
새로운 배포
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System.Collections.Generic;// ReSharper disable MemberCanBePrivate.Global
/// <summary>
/// Utility class to manage a list of symbol strings.
/// </summary>
public class DefineSymbols { private List<string> symbols;
public DefineSymbols(string symbols) { Set(symbols); }
public void Set(string sym) { symbols = new List<string>(sym.Split(new [] { ";" }, System.StringSplitOptions.None)); }
public bool Has(string symbol) { return (symbols.FindIndex(obj => obj == symbol) >= 0); }
public void Add(string symbol) { if (!Has(symbol)) { symbols.Add(symbol); } }
public void Remove(string symbol) { symbols.Remove(symbol); }
public string Get() { return string.Join(";", symbols.ToArray()); }}
|