17[
TypeDescriptionProvider(
"MS.Internal.Xml.Linq.ComponentModel.XTypeDescriptionProvider`1[[System.Xml.Linq.XElement, System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]],System.ComponentModel.TypeConverter")]
333 flag = flag ||
flag2;
338 if ((
object)
namespaceName ==
"http://www.w3.org/XML/1998/namespace")
345 else if ((
object)
namespaceName ==
"http://www.w3.org/2000/xmlns/")
600 writer.WriteStartDocument();
602 writer.WriteEndDocument();
699 public static explicit operator string?(
XElement? element)
701 return element?.Value;
716 public static explicit operator bool?(
XElement? element)
726 public static explicit operator int(
XElement element)
737 public static explicit operator int?(
XElement? element)
747 public static explicit operator uint(
XElement element)
758 public static explicit operator uint?(
XElement? element)
768 public static explicit operator long(
XElement element)
779 public static explicit operator long?(
XElement? element)
789 public static explicit operator ulong(
XElement element)
800 public static explicit operator ulong?(
XElement? element)
810 public static explicit operator float(
XElement element)
821 public static explicit operator float?(
XElement? element)
831 public static explicit operator double(
XElement element)
842 public static explicit operator double?(
XElement? element)
852 public static explicit operator decimal(
XElement element)
863 public static explicit operator decimal?(
XElement? element)
989 if (
a.parent !=
null)
1002 if (
a.parent !=
null)
1012 if (
a.parent !=
null)
1136 if (!
r.IsEmptyElement)
1147 if (!
r.IsEmptyElement)
1166 string baseURI =
r.BaseURI;
1167 if (!
string.IsNullOrEmpty(baseURI))
1181 if (!
r.MoveToFirstAttribute())
1194 while (
r.MoveToNextAttribute());
1201 if (
a.parent !=
this)
static CultureInfo InvariantCulture
static string Argument_InvalidPrefix
static string InvalidOperation_ExternalCode
static string InvalidOperation_ExpectedNodeType
static string Format(string resourceFormat, object p1)
static string InvalidOperation_DuplicateAttribute
static string InvalidOperation_ExpectedInteractive
static string Argument_AddNode
static string InvalidOperation_DeserializeInstance
static string InvalidOperation_ExpectedEndOfFile
static string GetStringAndRelease(StringBuilder sb)
static StringBuilder Acquire(int capacity=16)
static Task FromCanceled(CancellationToken cancellationToken)
static IEnumerable< XAttribute > EmptySequence
void AddContentSkipNotify(object content)
bool ContentsEqual(XContainer e)
static object GetContentSnapshot(object content)
async Task ReadContentFromAsync(XmlReader r, CancellationToken cancellationToken)
void ReadContentFrom(XmlReader r)
IEnumerable< XNode > GetDescendantNodes(bool self)
static string GetStringValue(object value)
IEnumerable< XElement > GetDescendants(XName name, bool self)
override void AppendText(StringBuilder sb)
IEnumerable< XAttribute > Attributes()
static XElement Load(Stream stream)
void Save(string fileName)
IEnumerable< XElement > DescendantsAndSelf()
static XElement Load(TextReader textReader)
override void AddAttributeSkipNotify(XAttribute a)
XAttribute? Attribute(XName name)
bool AttributesEqual(XElement e)
string? GetPrefixOfNamespace(XNamespace ns)
override void ValidateNode(XNode node, XNode previous)
static async Task< XElement > LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
void ReplaceAttributes(params object?[] content)
override void AddAttribute(XAttribute a)
IEnumerable< XElement > AncestorsAndSelf(XName? name)
void AppendAttribute(XAttribute a)
void Save(Stream stream, SaveOptions options)
override int GetDeepHashCode()
XElement(XmlReader r, LoadOptions o)
override bool DeepEquals(XNode node)
async Task ReadElementFromAsync(XmlReader r, LoadOptions o, CancellationToken cancellationTokentoken)
override XmlNodeType NodeType
void SetElementValue(XName name, object? value)
XNamespace? GetNamespaceOfPrefix(string prefix)
static XElement Load(string uri)
IEnumerable< XElement > DescendantsAndSelf(XName? name)
string GetNamespaceOfPrefixInScope(string prefix, XElement outOfScope)
XElement(XStreamingElement other)
void ReplaceAll(object? content)
static XElement Load(string uri, LoadOptions options)
XAttribute? FirstAttribute
XNamespace GetDefaultNamespace()
static XElement Load(XmlReader reader, LoadOptions options)
IEnumerable< XAttribute > Attributes(XName? name)
void ReadElementFrom(XmlReader r, LoadOptions o)
override Task WriteToAsync(XmlWriter writer, CancellationToken cancellationToken)
async Task SaveAsync(TextWriter textWriter, SaveOptions options, CancellationToken cancellationToken)
static XElement Load(XmlReader reader)
IEnumerable< XAttribute > GetAttributes(XName name)
IEnumerable< XElement > AncestorsAndSelf()
void Save(XmlWriter writer)
void ReplaceAll(params object?[] content)
void SetEndElementLineInfo(int lineNumber, int linePosition)
XAttribute? LastAttribute
void Save(TextWriter textWriter, SaveOptions options)
async Task SaveAsyncInternal(XmlWriter writer, CancellationToken cancellationToken)
void SetValue(object value)
static XElement Parse(string text)
XElement(XName name, params object?[] content)
void AppendAttributeSkipNotify(XAttribute a)
static XElement Load(TextReader textReader, LoadOptions options)
static Task< XElement > LoadAsync(XmlReader reader, LoadOptions options, CancellationToken cancellationToken)
override XNode CloneNode()
static async Task< XElement > LoadAsyncInternal(XmlReader reader, LoadOptions options, CancellationToken cancellationToken)
async Task SaveAsync(Stream stream, SaveOptions options, CancellationToken cancellationToken)
void SetAttributeValue(XName name, object? value)
static IEnumerable< XElement > EmptySequence
static XElement Parse(string text, LoadOptions options)
void Save(string fileName, SaveOptions options)
void RemoveAttributesSkipNotify()
static async Task< XElement > CreateAsync(XmlReader r, CancellationToken cancellationToken)
override void WriteTo(XmlWriter writer)
XElement(AsyncConstructionSentry s)
void ReadElementFromImpl(XmlReader r, LoadOptions o)
Task SaveAsync(XmlWriter writer, CancellationToken cancellationToken)
void Save(TextWriter textWriter)
static async Task< XElement > LoadAsync(Stream stream, LoadOptions options, CancellationToken cancellationToken)
void ReplaceAttributes(object? content)
XElement(XName name, object? content)
void RemoveAttribute(XAttribute a)
static XElement Load(Stream stream, LoadOptions options)
IEnumerable< XNode > DescendantNodesAndSelf()
override int GetHashCode()
static XNamespace Get(string namespaceName)
static XmlWriterSettings GetXmlWriterSettings(SaveOptions o)
IEnumerable< XElement > GetAncestors(XName name, bool self)
static XmlReaderSettings GetXmlReaderSettings(LoadOptions o)
static readonly XObjectChangeEventArgs Name
static readonly XObjectChangeEventArgs Add
static readonly XObjectChangeEventArgs Remove
bool NotifyChanging(object sender, XObjectChangeEventArgs e)
SaveOptions GetSaveOptionsFromAnnotations()
void AddAnnotation(object annotation)
bool NotifyChanged(object sender, XObjectChangeEventArgs e)
static bool ToBoolean(string s)
static DateTimeOffset ToDateTimeOffset(string s)
static uint ToUInt32(string s)
static int ToInt32(string s)
static float ToSingle(string s)
static TimeSpan ToTimeSpan(string s)
static double ToDouble(string s)
static Guid ToGuid(string s)
static decimal ToDecimal(string s)
static ulong ToUInt64(string s)
static long ToInt64(string s)
virtual async Task< XmlNodeType > MoveToContentAsync()
virtual XmlNodeType MoveToContent()
static XmlReader Create(string inputUri)
static XmlWriter Create(string outputFileName)
void WriteXml(XmlWriter writer)
void ReadXml(XmlReader reader)
static DateTime Parse(string s)
async Task WriteElementAsync(XElement e, CancellationToken cancellationToken)
void WriteElement(XElement e)