30 references to Contains
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Http2\Http2Stream.cs (1)
421var pathEncoded = pathSegment.Contains('%');
Internal\Http3\Http3Stream.cs (1)
1162var pathEncoded = pathSegment.Contains('%');
Internal\Infrastructure\HttpUtilities.cs (2)
94if (source.Contains((byte)0) 132: ((ReadOnlySpan<char>)result).Contains('\0');
Microsoft.CodeAnalysis.Features (2)
Common\GlyphExtensions.cs (2)
55return allTags.Contains(LanguageNames.VisualBasic) ? Glyph.BasicFile : Glyph.CSharpFile; 58return allTags.Contains(LanguageNames.VisualBasic) ? Glyph.BasicProject : Glyph.CSharpProject;
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (1)
69if (escapedComma != -1 || fullName.Contains('\\'))
PresentationFramework (2)
System\Windows\Documents\FixedTextBuilder.cs (1)
98internal static bool IsHyphen(char target) => HyphenSet.Contains(target);
System\Windows\Documents\TextPointerBase.cs (1)
640internal static bool IsCharUnicodeNewLine(char ch) => NextLineCharacters.Contains(ch);
System.Diagnostics.Process (2)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.ParseMapModules.cs (2)
150return span.Contains('r') && span.Contains('x');
System.Net.NetworkInformation (3)
System\Net\NetworkInformation\PhysicalAddress.cs (3)
104if (address.Contains('-')) 115else if (address.Contains(':')) 130else if (address.Contains('.'))
System.Net.Primitives (1)
System\Net\Cookie.cs (1)
348&& domain.Contains('.') // In case of single-label domains, there should be an exact match.
System.Net.WebHeaderCollection (1)
System\Net\HeaderInfoTable.cs (1)
69if (!lastElement.Contains(','))
System.Numerics.Tensors (7)
System\Numerics\Tensors\netcore\Tensor.cs (6)
1443if (!tensor.IsContiguousAndDense && !tensor.Strides.Contains(0)) 1478else if (tensor.Strides.Contains(0)) 1516if (!tensor.IsContiguousAndDense && !tensor.Strides.Contains(0)) 1551else if (tensor.Strides.Contains(0)) 1592if (!tensor.IsContiguousAndDense && !tensor.Strides.Contains(0)) 1628else if (tensor.Strides.Contains(0))
System\Numerics\Tensors\netcore\TensorShape.cs (1)
1048Debug.Assert(IsBroadcast == Strides.Contains(0));
System.Private.CoreLib (4)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadDir.cs (1)
51Debug.Assert(NameLength != -1 || !value.Contains('\0'), "should not have embedded nulls if we parsed the end of string");
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (2)
314/// <inheritdoc cref="Contains{T}(ReadOnlySpan{T}, T)"/> 318Contains((ReadOnlySpan<T>)span, value);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (1)
204if (value.AsSpan(0, n).Contains('\0'))
System.Private.Uri (1)
System\DomainNameHelper.cs (1)
61Debug.Assert(!str.AsSpan(start, index).Contains(':'),
System.Security.Cryptography (1)
System\Security\Cryptography\PemEncoding.cs (1)
330return whitespace.Contains(ch);
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\ReflectionUtils.cs (1)
69if (escapedComma != -1 || fullName.Contains('\\'))