internal static void VerifyLocalName(string argName, string value) { if (value == null) { throw new ArgumentNullException(argName); } if (value.Length == 0) { throw Failure.EmptyString(argName); } foreach (char c in value) { if (!IsValidChar(c)) { throw RuntimeFailure.NotValidLocalName(argName); } } }