28 private readonly
string[]
_ids;
312 _soapNsID =
r.NameTable.
Add(
"http://schemas.xmlsoap.org/soap/encoding/");
313 _soap12NsID =
r.NameTable.
Add(
"http://www.w3.org/2003/05/soap-encoding");
315 _wsdlNsID =
r.NameTable.
Add(
"http://schemas.xmlsoap.org/wsdl/");
640 byte[]
array =
new byte[num];
646 num =
Math.
Min(num * 2, 65536);
647 array =
new byte[num];
992 if (name.Length == 5)
996 return name[5] ==
':';
1003 int num =
attr.Value.LastIndexOf(
':');
1103 return value?.Trim();
1194 if (
value.Length == 0)
1199 int num =
array.Length;
1279 for (
int i = 0; i <
array.Length; i++)
1281 if (
array[i].Length <= 0)
1285 if (
array[i] ==
"*")
1367 int num =
value?.LastIndexOf(
':') ?? (-1);
1368 string text = ((num < 0) ?
null :
value.Substring(0, num));
1375 if (
text ==
null ||
text.Length == 0)
1483 lineNumber = (linePosition = -1);
1636 string text2 =
null;
1673 if (!
text.StartsWith(
'#'))
1812 for (
int i = 0; i <
array.Length; i++)
1820 array.SetValue(target, i);
1897 else if (
type ==
null)
1913 flag =
type3.IsPrimitive;
1924 flag =
type3.IsPrimitive;
1942 if (
type3.IsValueType)
1944 if (!flag && !
type3.IsEnum)
1985 for (
int j = 0;
j < num;
j++)
1991 if (
type5.IsValueType)
2135 string localName = Reader.LocalName;
2137 string name = Reader.Name;
2139 string text2 =
null;
2141 int lineNumber = -1;
2142 int linePosition = -1;
2156 while (Reader.MoveToNextAttribute())
2158 if (
IsXmlnsAttribute(Reader.Name) || (Reader.Name ==
"id" && (!
_soap12 || Reader.NamespaceURI ==
"http://www.w3.org/2003/05/soap-encoding")))
2164 string value = Reader.Value;
2185 Reader.MoveToElement();
2186 if (Reader.IsEmptyElement)
2192 Reader.ReadStartElement();
2193 Reader.MoveToContent();
2199 Reader.MoveToContent();
2203 if (
list.Count <= num)
2205 return new object();
static unsafe Array CreateInstance(Type elementType, int length)
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
virtual int Add(object? value)
void Add(TKey key, TValue value)
virtual bool Contains(object key)
virtual void Add(object key, object? value)
static CultureInfo InvariantCulture
static byte Min(byte val1, byte val2)
static string XmlInvalidHref
static string XmlInvalidCast
static string XmlUndefinedAlias
static string Format(string resourceFormat, object p1)
static string XmlInvalidArraySyntax
static string XmlUnknownConstant
static string XmlConstructorHasSecurityAttributes
static string XmlReadOnlyCollection
static string XmlSerializableBadDerivation
static string XmlAbstractType
static string XmlInvalidArrayRef
static string XmlMissingHref
static string XmlInvalidArrayTypeName
static string XmlInvalidArrayDimentions
static string XmlRpcArrayOfValueTypes
static string XmlInvalidArrayTypeNamespace
static string XmlInvalidCastWithId
static string XmlUnknownNode
static string XmlEmptyArrayType
static string XmlUnknownType
static string XmlInvalidArrayLength
static string XmlSerializableMissingClrType
static string XmlConstructorInaccessible
static string XmlMissingArrayType
static string XmlInvalidNullCast
static string XmlMismatchedArrayBrackets
static Assembly Get(string fullName)
static Type GetArrayElementType(Type type, string memberInfo)
CollectionFixup(object? collection, XmlSerializationCollectionFixupCallback callback, object collectionItems)
readonly object _collection
readonly XmlSerializationCollectionFixupCallback _callback
readonly object _collectionItems
readonly XmlSerializationFixupCallback _callback
Fixup(object? o, XmlSerializationFixupCallback callback, int count)
Fixup(object? o, XmlSerializationFixupCallback callback, string?[]? ids)
static ? string ToXmlNmTokens(string? value)
void UnknownAttribute(object? o, XmlAttribute attr, string? qnames)
void UnknownNode(XmlNode unknownNode, object o, string qnames)
static ? Assembly ResolveDynamicAssembly(string assemblyFullName)
void Init(XmlReader r, XmlDeserializationEvents events, string encodingStyle, TempAssembly tempAssembly)
void UnknownAttribute(object? o, XmlAttribute attr)
void EnsureCallbackTables()
static ? byte[] ToByteArrayBase64(string? value)
ArrayList _collectionFixups
object ReadTypedPrimitive(XmlQualifiedName type, bool elementCanBeType)
XmlDeserializationEvents _events
Array? ShrinkArray(Array? a, int length, Type elementType, bool isNullable)
static long ToEnum(string value, Hashtable h, string typeName)
void UnknownNode(object? o)
static ? string ToXmlName(string? value)
Exception CreateInaccessibleConstructorException(string typeName)
string _normalizedStringID
object ReadXmlNodes(bool elementCanBeType)
static char ToChar(string value)
void AddReadCallback(string name, string ns, Type type, XmlSerializationReadCallback read)
string _nonNegativeIntegerID
XmlQualifiedName? GetXsiType()
object ReadArray(string typeName, string typeNs)
XmlQualifiedName? ReadNullableQualifiedName()
byte?[] ToByteArrayBase64(bool isNull)
void UnknownNode(object? o, string? qnames)
static DateTime ToDate(string value)
string _nonPositiveIntegerID
static DateTime ToTime(string value)
Exception CreateMissingIXmlSerializableType(string? name, string? ns, string? clrType)
object? ReadReferencedElement()
SoapArrayInfo ParseSoap12ArrayType(string itemType, string arraySize)
string? ReadNullableString()
void AddFixup(Fixup? fixup)
void Referenced(object? o)
object? ReadTypedPrimitive(XmlQualifiedName type)
Exception CreateUnknownTypeException(XmlQualifiedName type)
bool IsXmlnsAttribute(string name)
XmlDocument? ReadXmlDocument(bool wrapped)
object GetTarget(string id)
SoapArrayInfo ParseArrayType(string value)
Exception CreateInvalidCastException(Type type, object? value, string? id)
void AddTarget(string? id, object? o)
bool IsPrimitiveNamespace(string ns)
void UnreferencedObject(string? id, object? o)
int GetArrayLength(string name, string ns)
object? ReadTypedNull(XmlQualifiedName type)
string? ReadString(string? value)
Exception CreateBadDerivationException(string? xsdDerived, string? nsDerived, string? xsdBase, string? nsBase, string? clrDerived, string? clrBase)
void UnknownElement(object? o, XmlElement elem, string? qnames)
void FixupArrayRefs(object fixup)
Exception CreateInvalidCastException(Type type, object? value)
byte[] ReadByteArray(bool isBase64)
string _positiveIntegerID
ArrayList _targetsWithoutIds
static ? string ToXmlNmToken(string? value)
static ? string ToXmlNCName(string? value)
Hashtable _referencedTargets
Exception CreateUnknownNodeException()
string? CollapseWhitespace(string? value)
byte?[] ToByteArrayHex(bool isNull)
string? ReadString(string? value, bool trim)
static DateTime ToDateTime(string value)
Exception CreateUnknownConstantException(string? value, Type enumType)
Array EnsureArrayIndex(Array? a, int index, Type elementType)
IXmlSerializable ReadSerializable(IXmlSerializable serializable, bool wrappedAny)
bool ReadReference([NotNullWhen(true)] out string? fixupReference)
XmlQualifiedName ToXmlQualifiedName(string? value)
void ReadReferencedElements()
object? ReadReferencedElement(string? name, string? ns)
XmlQualifiedName ToXmlQualifiedName(string value, bool decodeName)
void ParseWsdlArrayType(XmlAttribute attr)
void HandleUnreferencedObjects()
object? ReadReferencingElement(string? name, string? ns, bool elementCanBeType, out string? fixupReference)
void AddFixup(CollectionFixup? fixup)
Type GetPrimitiveType(XmlQualifiedName typeName, bool throwOnUnknown)
void GetCurrentPosition(out int lineNumber, out int linePosition)
string _negativeIntegerID
object? ReadReferencingElement(out string? fixupReference)
Exception CreateReadOnlyCollectionException(string name)
string _schemaNonXsdTypesNsID
Exception CreateCtorHasSecurityException(string typeName)
XmlQualifiedName ReadXmlQualifiedName()
XmlNode? ReadXmlNode(bool wrapped)
void CheckReaderCount(ref int whileIterations, ref int readerCount)
IXmlSerializable ReadSerializable(IXmlSerializable serializable)
Exception CreateAbstractTypeException(string name, string? ns)
static ? byte[] ToByteArrayHex(string? value)
XmlQualifiedName ReadElementQualifiedName()
object? ReadReferencingElement(string? name, string? ns, out string? fixupReference)
void UnknownElement(object? o, XmlElement elem)
static XmlQualifiedName GetPrimitiveTypeNameInternal(Type type)
static bool ToBoolean(string s)
static DateTimeOffset ToDateTimeOffset(string s)
static uint ToUInt32(string s)
static ? string DecodeName(string? name)
static int ToInt32(string s)
static short ToInt16(string s)
static float ToSingle(string s)
static TimeSpan ToTimeSpan(string s)
static double ToDouble(string s)
static sbyte ToSByte(string s)
static decimal ToDecimal(string s)
static ulong ToUInt64(string s)
static ushort ToUInt16(string s)
static byte ToByte(string s)
static long ToInt64(string s)
virtual ? XmlNode ReadNode(XmlReader reader)
void SetBaseURI(string inBaseURI)
XmlElement CreateElement(string name)
XmlAttribute CreateAttribute(string name)
static readonly XmlQualifiedName Empty
string? GetAttribute(string name)
virtual void ReadStartElement()
virtual void ReadEndElement()
virtual int ReadElementContentAsBase64(byte[] buffer, int index, int count)
string? LookupNamespace(string prefix)
virtual XmlNodeType MoveToContent()
virtual string ReadElementString()
virtual string ReadString()
virtual int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
delegate void XmlSerializationCollectionFixupCallback(object? collection, object? collectionItems)
delegate void XmlSerializationFixupCallback(object fixup)
delegate? object XmlSerializationReadCallback()
UnreferencedObjectEventHandler? OnUnreferencedObject
XmlAttributeEventHandler? OnUnknownAttribute
XmlElementEventHandler? OnUnknownElement
XmlNodeEventHandler? OnUnknownNode