System.Xml.ValidateNames.StartsWithXml C# (CSharp) Method

StartsWithXml() static private method

Returns true if "prefix" starts with the characters 'x', 'm', 'l' (case-insensitive).
static private StartsWithXml ( string s ) : bool
s string
return bool
        internal static bool StartsWithXml(string s)
        {
            if (s.Length < 3)
                return false;

            if (s[0] != 'x' && s[0] != 'X')
                return false;

            if (s[1] != 'm' && s[1] != 'M')
                return false;

            if (s[2] != 'l' && s[2] != 'L')
                return false;

            return true;
        }