AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.1-alpha-125" />

.NET API 879,616 bytes

 ProcessingInstruction

Represents a processing instruction node.
using System.Runtime.CompilerServices; namespace AngleSharp.Dom { internal sealed class ProcessingInstruction : CharacterData, IProcessingInstruction, ICharacterData, INode, IEventTarget, IMarkupFormattable, IChildNode, INonDocumentTypeChildNode { [System.Runtime.CompilerServices.Nullable(1)] public string Target { [System.Runtime.CompilerServices.NullableContext(1)] get { return base.NodeName; } } [System.Runtime.CompilerServices.NullableContext(1)] internal ProcessingInstruction(Document owner, string name) : base(owner, name, NodeType.ProcessingInstruction) { } [System.Runtime.CompilerServices.NullableContext(1)] public override Node Clone(Document owner, bool deep) { ProcessingInstruction processingInstruction = new ProcessingInstruction(owner, Target); CloneNode(processingInstruction, owner, deep); return processingInstruction; } [System.Runtime.CompilerServices.NullableContext(1)] internal static ProcessingInstruction Create(Document owner, string data) { int num = data.IndexOf(' '); ProcessingInstruction processingInstruction = new ProcessingInstruction(owner, (num <= 0) ? data : data.Substring(0, num)); if (num > 0) processingInstruction.Data = data.Substring(num); return processingInstruction; } } }