11 references to TryCreate
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
203if (Rune.TryCreate(ch, out var rune))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
334if (Rune.TryCreate(ch, out var rune))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
203if (Rune.TryCreate(ch, out var rune))
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
179if (!Rune.TryCreate(ch, out Rune rune)) // optimistically assume UTF-8 code path (which uses Rune) will be hit
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (1)
239if (!Rune.TryCreate(ch, out Rune rune) && !Rune.TryCreate(ch, GetNextChar(), out rune))
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
280if (Rune.TryCreate(firstChar, out Rune value) || Rune.TryCreate(firstChar, GetNextChar(), out value))
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (2)
331if (TryCreate(firstChar, out result)) 584if (TryCreate(finalChar, out result))
System.Private.Uri (1)
System\IriHelper.cs (1)
179else if (!Rune.TryCreate(ch, out rune))
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
187if (!Rune.TryCreate(thisChar, out Rune scalarValue))
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\VirtualChars\AbstractVirtualCharService.cs (1)
203if (Rune.TryCreate(ch, out var rune))