ComponentFactory.Krypton.Ribbon.EncryptedLicenseProvider.Strip C# (CSharp) 메소드

Strip() 개인적인 정적인 메소드

Return the given input string stripped of the given characters
private static Strip ( string value, string characters ) : string
value string The string to strip
characters string The characters to strip from the string
리턴 string
        private static string Strip(string value, string characters)
        {
            if (value == null) return null;
            StringBuilder sb = new StringBuilder();
            foreach (char ch in value)
            {
                if (characters.IndexOf(ch, 0) < 0)
                {
                    sb.Append(ch);
                }
            }
            return sb.ToString();
        }