85 references to EndsWith
aspire (2)
Utils\ArchiveHelper.cs (2)
55if (entry.FullName.EndsWith('/') || entry.FullName.EndsWith('\\'))
Aspire.Dashboard (1)
Model\Assistant\FollowUpPromptViewModel.cs (1)
83if (text.Length >= 2 && text.StartsWith('"') && text.EndsWith('"'))
Aspire.Hosting (2)
ApplicationModel\HostUrl.cs (2)
92var hasEndingSlash = Url.EndsWith('/'); 95if (!hasEndingSlash && retval.EndsWith('/'))
Aspire.Hosting.Azure (1)
Provisioning\Internal\BaseProvisioningContextProvider.cs (1)
69if (name.EndsWith('.'))
crossgen2 (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
436if (token.EndsWith('"'))
dotnet (3)
Commands\Run\CSharpCompilerCommand.cs (1)
334Debug.Assert(!optionName.StartsWith('/') && optionName.EndsWith(':'));
Commands\Test\MTP\TestApplicationHandler.cs (1)
577=> text.EndsWith('\n') ? text : text + Environment.NewLine;
ShellShim\WindowsEnvironmentPath.cs (1)
54if (existingUserEnvPath.EndsWith(';'))
dotnet-aot (1)
src\sdk\src\Cli\dotnet\ShellShim\WindowsEnvironmentPath.cs (1)
54if (existingUserEnvPath.EndsWith(';'))
dotnet-format (2)
Workspaces\FolderWorkspace_FolderSolutionLoader.cs (2)
63globs[index].EndsWith('\\') || 64globs[index].EndsWith('/'))
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
436if (token.EndsWith('"'))
ILCompiler.MetadataTransform (1)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
377bool alreadyQuoted = asString.StartsWith('\"') && asString.EndsWith('\"');
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\ILDisassembler.cs (1)
286if (opCodeString.EndsWith('.'))
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\StringExtensions.cs (1)
537return text.EndsWith(value);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\RoslynCSharpTokenizer.cs (1)
520_isOnlyWhitespaceOnLine = triviaString.EndsWith('\n');
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
197if (dotNetPath.EndsWith('\\'))
Microsoft.DotNet.Cli.Telemetry (1)
Implementation\AzureMonitorConnectionString.cs (1)
73=> value.EndsWith('/') ? value : value + "/";
Microsoft.DotNet.HotReload.Watch (2)
HotReload\HotReloadDotNetWatcher.cs (2)
642Debug.Assert(!dirUrl.EndsWith('/')); 643Debug.Assert(!pattern.BaseUrl.EndsWith('/'));
Microsoft.DotNet.PackageValidation (1)
Filtering\TargetFrameworkFilter.cs (1)
42excludedTargetFramework.EndsWith('*'))
Microsoft.NET.Build.Containers (1)
LocalDaemons\ArchiveFileRegistry.cs (1)
35if (fullPath.EndsWith(directorySeparatorChar))
System.Data.Common (1)
System\Data\DataTable.cs (1)
3733if (current.EndsWith(']'))
System.DirectoryServices (1)
System\DirectoryServices\ActiveDirectory\Utils.cs (1)
1911if (serverName.EndsWith(']'))
System.Formats.Tar (2)
System\Formats\Tar\TarEntry.cs (2)
435string logicalPrefix = logicalDest.EndsWith(Path.DirectorySeparatorChar) 439string destPrefix = resolvedDest.EndsWith(Path.DirectorySeparatorChar)
System.IO.Compression (2)
System\IO\Compression\ZipArchiveEntry.cs (2)
177_externalFileAttr = entryName.EndsWith(Path.DirectorySeparatorChar) || entryName.EndsWith(Path.AltDirectorySeparatorChar)
System.IO.Compression.ZipFile (1)
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (1)
231string destinationPrefix = fullDestination.EndsWith(Path.DirectorySeparatorChar)
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
205if (pipeName.AsSpan().ContainsAny(s_invalidPathNameChars) || pipeName.EndsWith(Path.DirectorySeparatorChar))
System.Net.Http (7)
System\Net\Http\Headers\CacheControlHeaderValue.cs (1)
501if ((valueString.Length < 3) || !valueString.StartsWith('\"') || !valueString.EndsWith('\"'))
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (2)
335if (parameter.EndsWith('*')) 372if (parameter.EndsWith('*'))
System\Net\Http\Headers\NameValueHeaderValue.cs (2)
361if (value.StartsWith(' ') || value.StartsWith('\t') || value.EndsWith(' ') || value.EndsWith('\t'))
System\Net\Http\HttpContent.cs (1)
142charset.EndsWith('\"'))
System\Net\Http\MultipartContent.cs (1)
82if (boundary.EndsWith(' '))
System.Net.HttpListener (3)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (1)
855return (value.Length >= 2 && value.StartsWith('\"') && value.EndsWith('\"'))
System\Net\HttpListener.cs (1)
151if (!uriPrefix.EndsWith('/'))
System\Net\Managed\HttpEndPointListener.cs (1)
184string pathSlash = path.EndsWith('/') ? path : path + "/";
System.Net.Mail (2)
System\Net\Mail\Attachment.cs (1)
207if (cid.StartsWith('<') && cid.EndsWith('>'))
System\Net\Mail\MailAddress.cs (1)
144if (displayName.Length >= 2 && displayName.StartsWith('\"') && displayName.EndsWith('\"'))
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
468if (hostName.EndsWith('.'))
System.Net.Primitives (8)
src\runtime\src\libraries\Common\src\System\Net\CookieParser.cs (1)
855return (value.Length >= 2 && value.StartsWith('\"') && value.EndsWith('\"'))
System\Net\Cookie.cs (6)
243|| value.EndsWith(' ') 380m_name.EndsWith(' ') || 388(!(m_value.Length > 2 && m_value.StartsWith('\"') && m_value.EndsWith('\"')) && m_value.AsSpan().ContainsAny(';', ','))) 394if (Comment != null && !(Comment.Length > 2 && Comment.StartsWith('\"') && Comment.EndsWith('\"')) 401if (Path != null && !(Path.Length > 2 && Path.StartsWith('\"') && Path.EndsWith('\"')) 514if (!value.StartsWith('\"') || !value.EndsWith('\"'))
System\Net\CookieContainer.cs (1)
759cookiePath.EndsWith('/') ||
System.Net.Requests (3)
System\Net\FtpControlStream.cs (2)
804if (directory.Length > 1 && directory.EndsWith('/')) 988if (originalPath.Length > 0 && !originalPath.EndsWith('/'))
System\Net\WebRequest.cs (1)
258if (!prefix.EndsWith('/')
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
408if (baseUri.EndsWith('/'))
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
1002if (EnglishLanguageName.EndsWith(')'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (1)
300if (win32Str.EndsWith('0'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfoScanner.cs (1)
221if (str.EndsWith('.'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (1)
187if (str.EndsWith('*'))
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
528return EndsWith((char)value.Value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
513else if (!tzDirectory.EndsWith(Path.DirectorySeparatorChar))
System\Reflection\Runtime\MethodInfos\RuntimeMethodHelpers.cs (1)
81if (parameterTypeString.EndsWith('&'))
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.GetMember.cs (1)
30bool prefixSearch = optionalNameOrPrefix != null && optionalNameOrPrefix.EndsWith('*');
System.Private.DataContractSerialization (1)
System\Xml\XmlBaseWriter.cs (1)
440else if (text.Contains("--") || text.EndsWith('-'))
System.Private.Uri (2)
System\Uri.cs (1)
1294if (name.StartsWith('[') && name.EndsWith(']'))
System\UriBuilder.cs (1)
177if (!value.StartsWith('[') || !value.EndsWith(']'))
System.Private.Xml (13)
System\Xml\Core\XmlTextWriter.cs (1)
762if (null != text && (text.Contains("--") || text.EndsWith('-')))
System\Xml\Serialization\XmlSerializationReader.cs (7)
4000if (member.Source.EndsWith('(') || member.Source.EndsWith('{')) 4005if (member.Source.EndsWith('{')) 4594if (!source.EndsWith('(') && !source.EndsWith('{')) 4602if (source.EndsWith('(')) 4604else if (source.EndsWith('{'))
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
2229if (member.Source.EndsWith('(') || member.Source.EndsWith('{'))
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
2548else if (initValue.Source.EndsWith(']'))
System\Xml\XmlConvert.cs (2)
410token.EndsWith(' ') || 427token.EndsWith(' ') ||
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (1)
28bool prefixSearch = optionalNameOrPrefix != null && optionalNameOrPrefix.EndsWith('*');
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
1768if (hostname.EndsWith('.')) 1799if (embedded.EndsWith('.'))
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\BindingSource.cs (1)
997current = current.EndsWith(']')