100 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
107 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
114 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
145 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
164 if (
base.DataContractResolver ==
null)
202 if (knownDataContracts !=
null)
215 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
229 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
266 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
284 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
300 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
415 int num = qname.IndexOf(
':');
419 prefix = qname.Substring(0, num);
421 name = qname.Substring(num + 1);
429 if (
index ==
int.MaxValue)
433 int num = ((
index < 1073741823) ? (
index * 2) :
int.MaxValue);
443 if (size !=
array.Length)
473 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
483 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
489 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
522 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
561 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
571 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
582 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
689 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
755 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
778 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
836 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
884 if (
namespaceURI !=
"http://schemas.microsoft.com/2003/10/Serialization/" &&
namespaceURI !=
"http://www.w3.org/2001/XMLSchema-instance")
913 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
1032 localName = localName ??
"wrapper";
1033 ns = ns ??
string.Empty;
1069 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
void Add(TKey key, TValue value)
bool UnrecognizedAttributesFound
void Read(XmlReaderDelegator reader)
string FactoryTypeNamespace
static string GetClrTypeFullName(Type type)
static Exception ThrowHelperError(Exception e)
static Type TypeOfXmlNodeArray
static readonly string NewObjectId
static Type TypeOfXmlElement
bool IsObjectReferenced(string id)
void Add(string id, object obj)
object GetObject(string id)
static object GetRealObject(IObjectReference obj, StreamingContext context)
XmlObjectSerializer serializer
DataContract GetDataContract(Type type)
DataContract rootTypeDataContract
DataContract ResolveDataContractFromKnownTypes(XmlQualifiedName typeName)
ScopedKnownTypes scopedKnownTypes
StreamingContext GetStreamingContext()
virtual void CheckIfTypeSerializable(Type memberType, bool isMemberTypeSerializable)
void IncrementItemCount(int count)
bool ReplaceScopedKnownTypesTop(Dictionary< XmlQualifiedName, DataContract > knownDataContracts, bool knownTypesAddedInCurrentScope)
static T[] EnsureArraySize< T >(T[] array, int index)
IDataNode ReadExtensionDataValue(XmlReaderDelegator xmlReader)
void HandleUnknownElement(XmlReaderDelegator xmlReader, ExtensionDataObject extensionData, int memberIndex)
static void ThrowRequiredMemberMissingException(XmlReaderDelegator xmlReader, int memberIndex, int requiredIndex, XmlDictionaryString[] memberNames)
virtual object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, string name, string ns)
virtual int GetArraySize()
ExtensionDataMember ReadExtensionDataMember(XmlReaderDelegator xmlReader, int memberIndex)
void ResetCollectionMemberInfo()
int GetMemberIndexWithRequiredMembers(XmlReaderDelegator xmlReader, XmlDictionaryString[] memberNames, XmlDictionaryString[] memberNamespaces, int memberIndex, int requiredIndex, ExtensionDataObject extensionData)
virtual DataContract ResolveDataContractFromTypeName()
bool _isGetOnlyCollection
void CheckEndOfArray(XmlReaderDelegator xmlReader, int arraySize, XmlDictionaryString itemName, XmlDictionaryString itemNamespace)
static void ThrowNullValueReturnedForGetOnlyCollectionException(Type type)
static bool MoveToNextElement(XmlReaderDelegator xmlReader)
virtual object ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)
static void ParseQualifiedName(string qname, XmlReaderDelegator xmlReader, out string name, out string ns, out string prefix)
override bool IsGetOnlyCollection
IDataNode ReadExtensionDataValue(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
XmlSerializableReader _xmlSerializableReader
object _getOnlyCollectionValue
static XmlNode CreateWrapperXmlElement(XmlDocument document, IList< XmlAttribute > xmlAttributes, IList< XmlNode > xmlChildNodes, string prefix, string localName, string ns)
bool TryHandleNullOrRef(XmlReaderDelegator reader, Type declaredType, string name, string ns, ref object retObj)
virtual IDataNode ReadPrimitiveExtensionDataValue(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
static Exception CreateUnexpectedStateException(XmlNodeType expectedState, XmlReaderDelegator xmlReader)
object ReadIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType)
ClassDataNode ReadUnknownClassData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
XmlObjectSerializerReadContext(DataContractSerializer serializer, DataContract rootTypeDataContract, DataContractResolver dataContractResolver)
bool IsContentNode(XmlNodeType nodeType)
IDataNode ReadUnknownPrimitiveData(XmlReaderDelegator xmlReader, Type type, string dataContractName, string dataContractNamespace)
void ReplaceDeserializedObject(string id, object oldObj, object newObj)
void StoreCollectionMemberInfo(object collectionMember)
void AddNewObject(object obj)
object GetCollectionMember()
object GetExistingObject(string id, Type type, string name, string ns)
object GetExistingObjectOrExtensionData(string id)
string ReadIfNullOrRef(XmlReaderDelegator xmlReader, Type memberType, bool isMemberTypeSerializable)
static T[] TrimArraySize< T >(T[] array, int size)
virtual object InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, string name, string ns)
IDataNode ReadAndResolveUnknownXmlData(XmlReaderDelegator xmlReader, IDictionary< string, string > namespaces, string dataContractName, string dataContractNamespace)
void AddNewObjectWithId(string id, object obj)
virtual object InternalDeserialize(XmlReaderDelegator xmlReader, int id, RuntimeTypeHandle declaredTypeHandle, string name, string ns)
object GetRealObject(IObjectReference obj, string id)
XmlReaderDelegator CreateReaderOverChildNodes(IList< XmlAttribute > xmlAttributes, IList< XmlNode > xmlChildNodes)
HybridObjectCache _deserializedObjects
void HandleMemberNotFound(XmlReaderDelegator xmlReader, ExtensionDataObject extensionData, int memberIndex)
virtual void StartReadExtensionDataValue(XmlReaderDelegator xmlReader)
XmlAttribute AddNamespaceDeclaration(string prefix, string ns)
HybridObjectCache DeserializedObjects
void SkipUnknownElement(XmlReaderDelegator xmlReader)
static XmlObjectSerializerReadContext CreateContext(DataContractSerializer serializer, DataContract rootTypeDataContract, DataContractResolver dataContractResolver)
static void ThrowArrayExceededSizeException(int arraySize, Type type)
CollectionDataNode ReadUnknownCollectionData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
void InitializeExtensionDataNode(IDataNode dataNode, string dataContractName, string dataContractNamespace)
SerializationInfo ReadSerializationInfo(XmlReaderDelegator xmlReader, Type type)
static object ReadRootIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType)
Attributes _attributesInXmlData
IDataNode ReadUnknownXmlData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
static object ReadIXmlSerializable(XmlSerializableReader xmlSerializableReader, XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType)
static void Read(XmlReaderDelegator xmlReader)
virtual bool IsReadingClassExtensionData(XmlReaderDelegator xmlReader)
XmlObjectSerializerReadContext(XmlObjectSerializer serializer, int maxItemsInObjectGraph, StreamingContext streamingContext, bool ignoreExtensionDataObject)
virtual void ReadAttributes(XmlReaderDelegator xmlReader)
ISerializableDataNode ReadUnknownISerializableData(XmlReaderDelegator xmlReader, string dataContractName, string dataContractNamespace)
virtual XmlReaderDelegator CreateReaderDelegatorForReader(XmlReader xmlReader)
object InternalDeserialize(XmlReaderDelegator reader, string name, string ns, Type declaredType, ref DataContract dataContract)
static Exception CreateSerializationException(string message)
int GetMemberIndex(XmlReaderDelegator xmlReader, XmlDictionaryString[] memberNames, XmlDictionaryString[] memberNamespaces, int memberIndex, ExtensionDataObject extensionData)
virtual bool IsReadingCollectionExtensionData(XmlReaderDelegator xmlReader)
static Exception CreateSerializationExceptionWithReaderDetails(string errorMessage, XmlReaderDelegator reader)
static string TryAddLineInfo(XmlReaderDelegator reader, string errorMessage)
static SerializationException CreateSerializationException(string errorMessage)
static IFormatterConverter FormatterConverter
static XmlNode[] ReadNodes(XmlReader xmlReader)
static string UnknownNullType
static string UnexpectedElementExpectingElements
static string UnexpectedEndOfFile
static string ErrorDeserializing
static string ExpectingState
static string Format(string resourceFormat, object p1)
static string FactoryTypeNotISerializable
static string ArrayExceededSize
static string MaxArrayLengthExceeded
static string FactoryObjectContainsSelfReference
static string DeserializedObjectWithIdNotFound
static string DcTypeNotResolvedOnDeserialize
static string ArrayExceededSizeAttribute
static string XmlStartElementExpected
static string NullValueReturnedForGetOnlyCollection
static string ErrorTypeInfo
static string ArraySizeAttributeIncorrect
static string DcTypeNotFoundOnDeserialize
static Type GetTypeFromHandle(RuntimeTypeHandle handle)
static ? string DecodeName(string? name)
virtual ? XmlNode ReadNode(XmlReader reader)
XmlAttribute CreateAttribute(string name)
void Push(Dictionary< XmlQualifiedName, DataContract > dataContractDictionary)