CNCGUI.TextParser.IsInArray C# (CSharp) Method

IsInArray() protected method

Determines if the specified character exists in the specified character array.
protected IsInArray ( char c, char chars ) : bool
c char Character to find
chars char Character array to search
return bool
        protected bool IsInArray(char c, char[] chars)
        {
            foreach (char ch in chars)
            {
                if (c == ch)
                    return true;
            }
            return false;
        }