647 return Array.Empty<
byte>();
666 return Array.Empty<
byte>();
819 if (
text ==
null ||
text.Length == 0)
829 if (
text ==
null ||
text.Length == 0)
852 return (ushort)
value;
972 if (
str ==
null ||
str.Length == 0)
974 name = (ns =
string.Empty);
static unsafe byte[] FromBase64String(string s)
static byte Min(byte val1, byte val2)
static string GetClrTypeFullName(Type type)
static Exception ThrowHelperError(Exception e)
static Type TypeOfByteArray
static Type TypeOfXmlQualifiedName
static Type TypeOfTimeSpan
void IncrementItemCount(int count)
static void ParseQualifiedName(string qname, XmlReaderDelegator xmlReader, out string name, out string ns, out string prefix)
static string TryAddLineInfo(XmlReaderDelegator reader, string errorMessage)
static SerializationException CreateSerializationException(string errorMessage)
static void CheckNull(object obj, string name)
virtual ulong ReadElementContentAsUnsignedLong()
bool MoveToAttribute(string name, string ns)
ushort ReadContentAsUnsignedShort()
XmlQualifiedName ReadElementContentAsQName()
bool IsLocalName(XmlDictionaryString localName)
float ReadElementContentAsFloat()
virtual char ReadElementContentAsChar()
string GetAttribute(string name, string namespaceUri)
virtual XmlQualifiedName ReadContentAsQName()
bool TryReadInt32Array(XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, int arrayLength, [NotNullWhen(true)] out int[] array)
object ReadContentAsAnyType(Type valueType)
virtual bool TryReadDateTimeArray(XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, int arrayLength, [NotNullWhen(true)] out DateTime[] array)
void CheckExpectedArrayLength(XmlObjectSerializerReadContext context, int arrayLength)
bool IsNamespaceUri(XmlDictionaryString ns)
bool IsNamespaceURI(string ns)
bool ReadContentAsBoolean()
Exception CreateInvalidPrimitiveTypeException(Type type)
bool ReadElementContentAsBoolean()
bool IsStartElement(string localname, string ns)
string GetAttribute(int i)
bool IsLocalName(string localName)
sbyte ReadElementContentAsSignedByte()
ushort ReadElementContentAsUnsignedShort()
short ReadElementContentAsShort()
XmlReader UnderlyingReader
bool TryReadInt64Array(XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, int arrayLength, [NotNullWhen(true)] out long[] array)
void CheckActualArrayLength(int expectedLength, int actualLength, XmlDictionaryString itemName, XmlDictionaryString itemNamespace)
byte ReadElementContentAsUnsignedByte()
bool TryReadDoubleArray(XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, int arrayLength, [NotNullWhen(true)] out double[] array)
virtual char ReadContentAsChar()
bool ReadAttributeValue()
virtual byte[] ReadContentAsBase64()
string GetAttribute(string name)
void ThrowConversionException(string value, string type)
bool TryReadBooleanArray(XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, int arrayLength, [NotNullWhen(true)] out bool[] array)
byte[] ReadContentAsBase64(string str)
virtual DateTime ReadElementContentAsDateTime()
ExtensionDataReader UnderlyingExtensionDataReader
TimeSpan ReadContentAsTimeSpan()
XmlDictionaryReader dictionaryReader
string ReadContentAsString()
void MoveToAttribute(int i)
bool MoveToFirstAttribute()
XmlNodeType MoveToContent()
int ReadElementContentAsInt()
string LookupNamespace(string prefix)
Guid ReadElementContentAsGuid()
string ReadElementContentAsString()
short ReadContentAsShort()
virtual DateTime ReadContentAsDateTime()
bool MoveToNextAttribute()
float ReadContentAsSingle()
uint ToUInt32(long value)
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
int IndexOfLocalName(XmlDictionaryString[] localNames, XmlDictionaryString ns)
bool TryReadSingleArray(XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, int arrayLength, [NotNullWhen(true)] out float[] array)
bool IsStartElement(XmlDictionaryString localname, XmlDictionaryString ns)
uint ReadContentAsUnsignedInt()
ushort ToUInt16(int value)
long ReadElementContentAsLong()
decimal ReadContentAsDecimal()
bool MoveToAttribute(string name)
bool TryReadDecimalArray(XmlObjectSerializerReadContext context, XmlDictionaryString itemName, XmlDictionaryString itemNamespace, int arrayLength, [NotNullWhen(true)] out decimal[] array)
uint ReadElementContentAsUnsignedInt()
virtual ulong ReadContentAsUnsignedLong()
double ReadElementContentAsDouble()
double ReadContentAsDouble()
IDataNode ReadExtensionData(Type valueType)
sbyte ReadContentAsSignedByte()
int GetArrayLengthQuota(XmlObjectSerializerReadContext context)
TimeSpan ReadElementContentAsTimeSpan()
Uri ReadElementContentAsUri()
XmlReaderDelegator(XmlReader reader)
decimal ReadElementContentAsDecimal()
virtual byte[] ReadElementContentAsBase64()
object ReadElementContentAsAnyType(Type valueType)
byte ReadContentAsUnsignedByte()
XmlQualifiedName ParseQualifiedName(string str)
static string XmlElementAttributes
static string XmlInvalidConversion
static string Format(string resourceFormat, object p1)
static string InterfaceTypeCannotBeCreated
static string ArrayExceededSizeAttribute
static string InvalidPrimitiveType_Serialization
static string XmlStartElementExpected
static TypeCode GetTypeCode(Type? type)
static readonly BooleanArrayHelperWithDictionaryString Instance
static readonly DateTimeArrayHelperWithDictionaryString Instance
static readonly DecimalArrayHelperWithDictionaryString Instance
static readonly DoubleArrayHelperWithDictionaryString Instance
static readonly Int32ArrayHelperWithDictionaryString Instance
static readonly Int64ArrayHelperWithDictionaryString Instance
static readonly SingleArrayHelperWithDictionaryString Instance
static DateTime ToDateTime(string s)
static TimeSpan ToTimeSpan(string value)
static ulong ToUInt64(string value)
virtual bool IsStartElement(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
virtual byte[] ReadElementContentAsBase64()
virtual bool IsLocalName(string localName)
virtual int IndexOfLocalName(string[] localNames, string namespaceUri)
virtual bool IsNamespaceUri(string namespaceUri)
virtual int ReadArray(string localName, string namespaceUri, bool[] array, int offset, int count)
virtual byte[] ReadContentAsBase64()
static XmlException CreateConversionException(string type, Exception exception)
virtual string ReadContentAsString()
virtual long ReadContentAsLong()
string? GetAttribute(string name)
virtual bool IsStartElement()
virtual long ReadElementContentAsLong()
virtual double ReadElementContentAsDouble()
virtual void ReadEndElement()
bool MoveToAttribute(string name)
bool ReadAttributeValue()
bool MoveToNextAttribute()
virtual float ReadContentAsFloat()
virtual int ReadContentAsInt()
virtual bool ReadContentAsBoolean()
bool MoveToFirstAttribute()
virtual decimal ReadContentAsDecimal()
string? LookupNamespace(string prefix)
virtual double ReadContentAsDouble()
virtual DateTime ReadContentAsDateTime()
virtual int ReadElementContentAsInt()
virtual XmlNodeType MoveToContent()
virtual float ReadElementContentAsFloat()
virtual decimal ReadElementContentAsDecimal()
virtual bool ReadElementContentAsBoolean()
virtual string ReadElementContentAsString()
XmlDateTimeSerializationMode
static Guid Parse(string input)