public bool CheckIfOnlyContainsValidPathAtomChars(out int characterWithError) { for (int i = 0; i < Length; i++) { if (!PathAtom.IsValidPathAtomChar(this[i])) { characterWithError = i; return(false); } } characterWithError = -1; return(true); }
public bool CheckIfOnlyContainsValidPathAtomChars(out int characterWithError) { int end = m_index + Length; for (int i = m_index; i < end; i++) { if (!PathAtom.IsValidPathAtomChar(m_value[i])) { characterWithError = i; return(false); } } characterWithError = -1; return(true); }