System.Security.Util.Tokenizer.StringMaker.CompareStringAndChars C# (CSharp) Method

CompareStringAndChars() private method

private CompareStringAndChars ( String str, char a, int l ) : bool
str String
a char
l int
return bool
            bool CompareStringAndChars(String str, char [] a, int l)
            {
                if (str.Length != l)
                    return false;
                
                for (int i=0; i<l; i++)
                    if (a[i] != str[i])
                        return false;
                        
                return true;
            }