86 references to IndexOfAny
ComSvcConfig (1)
parent\svcutil\CommandLineParser.cs (1)
184delim = arg.IndexOfAny(new char[] { ':', '=' });
mscorlib (7)
system\globalization\culturedata.cs (1)
3018Contract.Assert(timeParts.IndexOfAny(new char[] { '\'', '\\' }) == -1, "timeParts cannot include quote characters");
system\io\pathinternal.cs (1)
344return path.IndexOfAny(InvalidPathChars) >= 0 || (checkAdditional && AnyPathHasWildCardCharacters(path));
system\security\securityelement.cs (3)
470return tag.IndexOfAny( s_tagIllegalCharacters ) == -1; 479return text.IndexOfAny( s_textIllegalCharacters ) == -1; 494return value.IndexOfAny( s_valueIllegalCharacters ) == -1;
system\security\util\urlstring.cs (1)
1116else if (m_checkForIllegalChars && separatedArray[index].IndexOfAny( m_illegalDirectoryCharacters ) != -1)
system\typenameparser.cs (1)
308if (name.IndexOfAny(SPECIAL_CHARS) < 0)
PresentationFramework (2)
src\Framework\Microsoft\Win32\FileDialog.cs (1)
1653if (extensions[j].IndexOfAny(new char[] { '*', '?' }) == -1)
src\Framework\System\windows\Documents\TextEditor.cs (1)
1276endOfFirstLine = textData.IndexOfAny(TextPointerBase.NextLineCharacters);
svcutil (1)
CommandLineParser.cs (1)
184delim = arg.IndexOfAny(new char[] { ':', '=' });
System (16)
compmod\system\codedom\compiler\CodeValidator.cs (2)
818if (e.FileName.IndexOfAny(Path.GetInvalidPathChars()) != -1) 823if (e.RegionText.IndexOfAny(newLineChars) != -1)
net\System\_DomainName.cs (1)
527return host.IndexOfAny(s_UnsafeForNormalizedHost) != -1;
net\System\Net\cookie.cs (5)
256if (ValidationHelper.IsBlankString(value) || value[0] == '$' || value.IndexOfAny(Reserved2Name) != -1) { 373if (m_name == null || m_name.Length == 0 || m_name[0] == '$' || m_name.IndexOfAny(Reserved2Name) != -1) { 382(!(m_value.Length > 2 && m_value[0] == '\"' && m_value[m_value.Length-1] == '\"') && m_value.IndexOfAny(Reserved2Value) != -1)) { 391&& (Comment.IndexOfAny(Reserved2Value) != -1)) { 399&& (Path.IndexOfAny(Reserved2Value) != -1)) {
net\System\Net\Internal.cs (1)
898return stringValue.IndexOfAny(InvalidParamChars)!=-1;
net\System\Net\mail\Attachment.cs (1)
237if(value.IndexOfAny(new char[] { '<', '>' }) != -1)
net\System\Net\mail\SmtpDateTime.cs (1)
339int endOfTimeZoneOffset = timeZoneString.IndexOfAny(allowedWhiteSpaceChars);
net\System\Net\WebHeaderCollection.cs (2)
528if (name.IndexOfAny(ValidationHelper.InvalidParamChars) != -1) { 542&& (token.IndexOfAny(ValidationHelper.InvalidParamChars) == -1)
net\System\URI.cs (1)
1963int index = uriString.IndexOfAny(pathDelims);
services\io\system\io\FileSystemWatcher.cs (2)
306if (value.IndexOfAny(FileSystemWatcher.wildcards) != -1 || value.IndexOfAny(System.IO.Path.GetInvalidPathChars()) != -1) {
System.Activities (1)
System\Activities\Debugger\State.cs (1)
247while ((invalidIndex = input.IndexOfAny(invalidChars)) != -1)
System.Configuration (2)
System\Configuration\BaseConfigurationRecord.cs (1)
3666if (subPath.IndexOfAny(s_invalidSubPathCharactersArray) != -1) {
System\Configuration\StringValidator.cs (1)
65if (data.IndexOfAny(array) != -1) {
System.Data (4)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
2047if (numericString.IndexOfAny(exponentSymbols) == -1){
fx\src\data\System\Data\DataSet.cs (1)
3612(any.Namespace.IndexOfAny(new char[] { '#', ' ' }) < 0)) // special syntax (##any, ##other, ...) or more than one Uri present
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (2)
440Debug.Assert(path.IndexOfAny(InvalidPathChars) < 0); 478if (path.IndexOfAny(InvalidPathChars) >= 0)
System.Data.Entity (2)
System\Data\Common\EntitySql\AST\Literal.cs (2)
257int k = numericString.IndexOfAny(numberSuffixes); 346if (-1 != numericString.IndexOfAny(floatTokens))
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
488if ( line.IndexOfAny(_VBNonDeclMarkers) >= 0 )
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\FixUpCollection.cs (1)
484if ( line.IndexOfAny(_VBNonDeclMarkers) >= 0 )
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
902if (avt.IndexOfAny(curlyBraces) == -1) { 910if (avt.IndexOfAny(curlyBraces) == -1) {
System.IdentityModel (1)
System\IdentityModel\CryptoHelper.cs (1)
1256if (algorithm == null || algorithm.IndexOfAny(s_invalidChars) > 0)
System.Management (1)
managementpath.cs (1)
140if (nsPath.IndexOfAny(pathSeparators) == -1)
System.Runtime.Serialization (1)
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (1)
71if (value.IndexOfAny(JsonGlobals.floatingPointCharacters) == -1)
System.Security (1)
system\security\cryptography\xml\utils.cs (1)
468if (key == null || key.IndexOfAny(s_invalidChars) >= 0)
System.ServiceModel (1)
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (1)
365if (name.IndexOfAny(InvalidParamChars) != -1)
System.Web (15)
Configuration\AuthorizationRule.cs (2)
381int foundIndex = User.IndexOfAny(new char[] { '*', '?' }); 401int foundIndex = Role.IndexOfAny(new char[] { '*', '?' });
HttpRequest.cs (2)
2631int index = requestUrl.IndexOfAny(invalidChars); 2668int index = header.IndexOfAny(invalidChars);
HttpRuntime.cs (1)
3541if (originalResult.IndexOfAny(s_InvalidPhysicalPathChars) >= 0)
Routing\RouteCollection.cs (1)
218int iqs = url.IndexOfAny(new char[] { '?', '#' });
Security\ADMembershipProvider.cs (2)
2833index = escapeWildChar ? filterValue.IndexOfAny(specialCharacters) : filterValue.IndexOfAny(specialCharactersWithoutWildChar);
UI\Control.cs (1)
3185if (id.IndexOfAny(findControlSeparators) != -1) {
UI\DataBinder.cs (2)
97bool indexedExpr = expr.IndexOfAny(indexExprStartChars) >= 0; 216int indexExprStart = expr.IndexOfAny(indexExprStartChars);
UI\Util.cs (1)
262if (fileName.IndexOfAny(invalidFileNameChars) >= 0)
Util\AspCompat.cs (1)
465if (String.IsNullOrEmpty(value) || value.IndexOfAny(TabOrBackSpace) < 0) {
Util\FileUtil.cs (1)
236physicalPath.IndexOfAny(s_invalidPathChars) != -1 ||
Util\UriUtil.cs (1)
123int queryFragmentSeparatorPos = input.IndexOfAny(_queryFragmentSeparators);
System.Web.Extensions (2)
Compilation\WCFModel\ExternalFile.cs (2)
139if (fileName.IndexOfAny(Path.GetInvalidFileNameChars()) >= 0 || fileName.IndexOfAny(new Char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar, Path.VolumeSeparatorChar }) >= 0)
System.Web.Mobile (4)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (1)
746int i = shortDatePattern.IndexOfAny(formatChars);
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (1)
723int i = shortDatePattern.IndexOfAny(formatChars);
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (1)
1247int pos = value.IndexOfAny(_attributeCharacters);
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (1)
664int i = shortDatePattern.IndexOfAny(formatChars);
System.Windows.Forms (3)
winforms\Managed\System\Resources\ResXDataNode.cs (1)
712if (text.IndexOfAny(SpecialChars) != -1) {
winforms\Managed\System\WinForms\Control.cs (1)
16773if (text.IndexOfAny(new char[] {' ', '\r', '\n'}) != -1) {
winforms\Managed\System\WinForms\FileDialog.cs (1)
887if (extensions[j].IndexOfAny(new char[] { '*', '?' }) == -1) {
System.Workflow.Activities (3)
Common\CompModHelpers.cs (1)
104fileName.IndexOfAny(invalidChars) == -1);
Rules\CodeDomDecompiler.cs (1)
60bool hasExponent = svalue.IndexOfAny(new char[] { 'e', 'E' }) >= 0;
Rules\Design\Dialogs\IntellisenseTextBox.cs (1)
179if (removedString.ToString().IndexOfAny(". ()[]\t\n".ToCharArray()) >= 0)
System.Workflow.ComponentModel (7)
AuthoringOM\Bind.cs (1)
758int indexOfSeparator = path.IndexOfAny(new char[] { '.', '/', '[' });
AuthoringOM\Compiler\Validation\BindValidator.cs (1)
627int indexOfSeparator = memberName.IndexOfAny(new char[] { '.', '/', '[' });
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (2)
387helpMessage += ((MemberActivityBindTreeNode.MemberName(path).IndexOfAny(new char[] { '[', ']' }) != -1) ? EditIndex : string.Empty); 866else if (memberName.IndexOfAny("[]".ToCharArray()) != -1)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
437if (path.IndexOfAny(Path.GetInvalidPathChars()) >= 0 ||
AuthoringOM\Design\PropertyDescriptors.cs (1)
545int indexOfDot = fieldName.IndexOfAny(new char[] { '.', '/', '[' });
Shared\CompModHelpers.cs (1)
102fileName.IndexOfAny(invalidChars) == -1);
System.Xml (4)
System\Xml\XmlConvert.cs (4)
420if (token[0] == ' ' || token[token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1) { 430if (token[0] == ' ' || token[token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf(" ", StringComparison.Ordinal) != -1) { 476if (str.IndexOfAny(crt) != -1) { 483if (str.IndexOfAny(crt) != -1) {
UIAutomationClient (1)
MS\Internal\Automation\Misc.cs (1)
715if (string.IsNullOrEmpty(s) || s.IndexOfAny(new char[2] { ' ', '&' }) < 0)
UIAutomationClientsideProviders (1)
MS\Internal\AutomationProxies\Misc.cs (1)
1660if (string.IsNullOrEmpty(s) || s.IndexOfAny(new char[2] { ' ', '&' }) < 0)
WindowsBase (1)
Base\MS\Internal\AvTrace.cs (1)
416int formatIndex = s.IndexOfAny(FormatChars);