1 type derived from XText
System.Private.Xml.Linq (1)
System\Xml\Linq\XCData.cs (1)
12public class XCData : XText
24 instantiations of XText
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1179string encoded = new XText(value).ToString();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
858<DocumentFromSourceGenerator FilePath=""test1.cs"">{new XText(doc1Text)}</DocumentFromSourceGenerator>
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxFactory.vb (1)
902Dim encoded As String = New XText(value).ToString()
Microsoft.VisualStudio.LanguageServices (6)
Snippets\SnippetExpansionClient.cs (6)
659new XElement(snippetNamespace + "ID", new XText(parameter.Name)), 660new XElement(snippetNamespace + "Default", new XText(parameterValues.GetValueOrDefault(parameter.Name, ""))))); 671new XElement(snippetNamespace + "ID", new XText(PlaceholderSnippetField)), 672new XElement(snippetNamespace + "Default", new XText("")))); 694new XElement(snippetNamespace + "Title", new XText(methodName)), 695new XElement(snippetNamespace + "Description", new XText(s_fullMethodCallDescriptionSentinel))),
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)
436return new XText(reader); 484ret = new XText(reader.Value);
System\Xml\Linq\XText.cs (1)
125return new XText(this);
XmlFileLogger (2)
ObjectModel\Item.cs (1)
86element.Add(new XText(Text));
ObjectModel\Message.cs (1)
36element.Add(new XElement("Message", new XAttribute("Timestamp", _timestamp), new XText(_message)));
62 references to XText
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
507XText text => ConvertBlankLines(text.Value),
Microsoft.AspNetCore.DataProtection.Tests (7)
XmlAssert.cs (7)
64if (expected is XText && actual is XText) 66return AreEqual((XText)expected, (XText)actual); 78private static bool AreEqual(XText expected, XText actual) 119if (node is XText /* includes XCData */ || node is XElement)
Microsoft.CodeAnalysis.Features (2)
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
315AppendTextFromTextNode(state, (XText)node); 547private static void AppendTextFromTextNode(FormatterState state, XText element)
Microsoft.CodeAnalysis.Test.Utilities (1)
InstrumentationChecker.cs (1)
172CompleteCheck(compilation, (source.FirstNode as XText).Value.Trim());
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
960if (node is XText text && !string.IsNullOrWhiteSpace(text.Value))
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))]
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)
901ValidateString(((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"/>, 593/// <see cref="XText"/> nodes are equal if they contain the same text. Two 700if (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)
artifacts\obj\System.Xml.XDocument\Debug\net10.0\System.Xml.XDocument.Forwards.cs (1)
25[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.XText))]