5 references to Literal
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
5779if (segment.Literal is string literal)
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
662if (segment.Literal is string literal)
src\libraries\System.Private.CoreLib\src\System\Text\CompositeFormat.cs (2)
46Debug.Assert((segment.Literal is not null) ^ (segment.ArgIndex >= 0), "The segment should represent a literal or a format hole, but not both."); 48if (segment.Literal is string literal)
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
1900if (segment.Literal is string literal)