1 type derived from XText
System.Private.Xml.Linq (1)
System\Xml\Linq\XCData.cs (1)
12public class XCData : XText
31 instantiations of XText
Microsoft.AspNetCore.OpenApi.SourceGenerators (7)
XmlComments\XmlComment.cs (7)
94element.ReplaceWith(new XText(bulletText)); 108element.ReplaceWith(new XText(codeBlockDelimiter + codeText + codeBlockDelimiter)); 126element.ReplaceWith(new XText(paramName)); 141element.ReplaceWith(new XText(paramName)); 155element.ReplaceWith(new XText(paraText)); 200item.ReplaceWith(new XText(type)); 228item.ReplaceWith(new XText($"`{langword}`"));
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1208string encoded = new XText(value).ToString();
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxFactory.vb (1)
902Dim encoded As String = New XText(value).ToString()
NuGet.Configuration (5)
Settings\SettingText.cs (1)
91return new XText(Value);
Utility\XElementUtility.cs (4)
98element.AddBeforeSelf(new XText(childIndent)); 104container.Add(new XText(containerIndent)); 115container.Add(new XText(containerIndent + oneIndentLevel)); 125container.Add(new XText(containerIndent));
NuGet.PackageManagement (4)
Utility\XElementExtensions.cs (4)
278container.Add(new XText(containerIndent)); 287container.Add(new XText(containerIndent + oneIndentLevel)); 300element.AddBeforeSelf(new XText(childIndent)); 306container.Add(new XText(containerIndent));
System.Private.Xml.Linq (13)
System\Xml\Linq\XContainer.cs (7)
75XText t = new XText(s); 550AppendNode(new XText(s)); 579AppendNode(new XText(s)); 607AppendNodeSkipNotify(new XText(s)); 737XText t = new XText(s); 1078newNode = new XText(r.Value); 1194newNode = new XText(await r.GetValueAsync().ConfigureAwait(false));
System\Xml\Linq\XLinq.cs (3)
41InsertNode(new XText(_text)); 71InsertNode(new XText(_text)); 139InsertNode(new XText(_text));
System\Xml\Linq\XNode.cs (2)
433return new XText(reader); 481ret = new XText(reader.Value);
System\Xml\Linq\XText.cs (1)
125return new XText(this);
88 references to XText
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
507XText text => ConvertBlankLines(text.Value),
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
163else if (node is XText xtext)
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
163else if (node is XText xtext)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
163else if (node is XText xtext)
Microsoft.CodeAnalysis.Features (2)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
319if (node is XText textNode) 571private static void AppendTextFromTextNode(FormatterState state, XText element, bool replaceNewLineWithPara)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
163else if (node is XText xtext)
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
254x.Nodes().OfType<XText>().First().Value))
netstandard (1)
netstandard.cs (1)
2284[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XText))]
NuGet.Configuration (19)
Settings\Items\OwnersItem.cs (1)
41var descendants = element.Nodes().Where(n => n is XText text && !string.IsNullOrWhiteSpace(text.Value) || n is XElement)
Settings\Items\PackageSourceMappingSourceItem.cs (1)
78var parsedDescendants = element.Nodes().Where(n => n is XElement || n is XText text && !string.IsNullOrWhiteSpace(text.Value))
Settings\Items\TrustedSignerItem.cs (2)
56IEnumerable<SettingBase> parsedDescendants = element.Nodes().Where(n => n is XElement || n is XText text && !string.IsNullOrWhiteSpace(text.Value)) 86return element.Nodes().Where(n => n is XElement || n is XText text && !string.IsNullOrWhiteSpace(text.Value))
Settings\Items\UnknownItem.cs (1)
29var descendants = element.Nodes().Where(n => n is XText text && !string.IsNullOrWhiteSpace(text.Value) || n is XElement)
Settings\SettingFactory.cs (1)
21if (node is XText textNode)
Settings\SettingText.cs (2)
71internal SettingText(XText text, SettingsFile origin) 86if (Node is XText xText)
Utility\XElementUtility.cs (11)
30var leadingText = container.PreviousNode as XText; 46var textBeforeOrNull = element.PreviousNode as XText; 47var textAfterOrNull = element.NextNode as XText; 71var textBeforeOrNull = node.PreviousNode as XText; 86private static bool IsWhiteSpace(XText textNode) 112var lastChildText = container.LastNode as XText;
NuGet.PackageManagement (11)
Utility\XElementExtensions.cs (11)
266var leadingText = container.PreviousNode as XText; 284var lastChildText = container.LastNode as XText; 313var textBeforeOrNull = element.PreviousNode as XText; 314var textAfterOrNull = element.NextNode as XText; 334private static bool IsWhiteSpace(this XText textNode) 342var textBeforeOrNull = node.PreviousNode as XText;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
163else if (node is XText xtext)
System.ComponentModel.TypeConverter (2)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (2)
418if (sender is XElement || sender is XText) 424if (sender is XText)
System.Private.Xml.Linq (44)
System\Xml\Linq\XContainer.cs (8)
75XText t = new XText(s); 572XText? tn = content as XText; 600XText? tn = content as XText; 669s += ((XText)n).Value; 680s += ((XText)n).Value; 737XText t = new XText(s);
System\Xml\Linq\XDocument.cs (1)
909ValidateString(((XText)node).Value);
System\Xml\Linq\XLinq.cs (4)
63XText? prevXText = _previous as XText; 132XText? prevXText = _previous as XText;
System\Xml\Linq\XNode.cs (3)
25/// <see cref="XText"/>, 590/// <see cref="XText"/> nodes are equal if they contain the same text. Two 697if (this is XText) ws.ConformanceLevel = ConformanceLevel.Fragment;
System\Xml\Linq\XNodeEqualityComparer.cs (2)
27/// <see cref="XText"/> nodes are equal if they contain the same text. Two 66/// <see cref="XText"/> nodes are equal if they contain the same text. Two
System\Xml\Linq\XNodeReader.cs (1)
373return ((XText)o).Value;
System\Xml\Linq\XText.cs (6)
32public XText(XText other) 78/// Write this <see cref="XText"/> to the given <see cref="XmlWriter"/>. 81/// The <see cref="XmlWriter"/> to write this <see cref="XText"/> to. 98/// Write this <see cref="XText"/> to the given <see cref="XmlWriter"/>. 101/// The <see cref="XmlWriter"/> to write this <see cref="XText"/> to. 130return node != null && NodeType == node.NodeType && text == ((XText)node).text;
System\Xml\Schema\XNodeValidator.cs (2)
338XText? t = n as XText;
System\Xml\XPath\XNodeNavigator.cs (17)
283return CollectText((XText)_source); 507if (IsContent(container, next) && !(node is XText && next is XText)) 557if (((1 << (int)next.NodeType) & mask) != 0 && !(node is XText && next is XText)) 724private static string CollectText(XText n) 731XText? t = node as XText; 887XText? t = r as XText; 892t = t.NextNode as XText; 928XText? text = node as XText; 1015private static XText CalibrateText(XText n) 1024XText? t = node as XText;
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
26[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XText))]
System.Xml.XDocument (1)
src\runtime\artifacts\obj\System.Xml.XDocument\Release\net11.0\System.Xml.XDocument.Forwards.cs (1)
25[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XText))]