7 references to TryCreate
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)
338if (TryCreate(firstChar, out result)) 591if (TryCreate(finalChar, out result))
System.Private.Uri (1)
System\IriHelper.cs (1)
153else 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))