Get used chars
//The MIT License (MIT) //http://arolibraries.codeplex.com/license using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AroLibraries.ExtensionMethods.Strings { public static class StringExt { public static IList<char> Ext_GetUsedChars(this string iString) { IList<char> vList = new List<char>(); for (int i = 0; i < iString.Length; i++) { char vChar = iString[i]; char cCharLower = Char.ToLower(vChar); if (!vList.Contains(cCharLower) && Char.IsLetter(cCharLower)) { vList.Add(cCharLower); } } return vList; } } }
String