85 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
120 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
175 if (settings ==
null)
214 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
220 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
228 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
234 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
240 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
246 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
252 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
258 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
264 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
270 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
276 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
282 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
288 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
294 [
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.")]
306 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
312 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
318 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
324 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
380 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
394 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
403 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
409 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
456 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
466 return graph.GetType();
476 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
488 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
void Add(TKey key, TValue value)
static bool IsDynamicCodeSupported
static bool IsCollectionInterface(Type type)
DataContractResolver? DataContractResolver
bool PreserveObjectReferences
XmlDictionaryString? RootNamespace
bool SerializeReadOnlyTypes
int MaxItemsInObjectGraph
IEnumerable< Type >? KnownTypes
XmlDictionaryString? RootName
override void WriteEndObject(XmlDictionaryWriter writer)
ReadOnlyCollection< Type > _knownTypeCollection
DataContractSerializer(Type type, DataContractSerializerSettings? settings)
override void WriteStartObject(XmlWriter writer, object? graph)
Dictionary< XmlQualifiedName, DataContract > knownDataContracts
override bool InternalIsStartObject(XmlReaderDelegator reader)
override Type GetDeserializeType()
override void WriteStartObject(XmlDictionaryWriter writer, object? graph)
bool PreserveObjectReferences
bool IgnoreExtensionDataObject
override? object ReadObject(XmlReader reader)
static object SurrogateToDataContractType(ISerializationSurrogateProvider serializationSurrogateProvider, object oldObj, Type surrogatedDeclaredType, ref Type objType)
override void InternalWriteEndObject(XmlWriterDelegator writer)
override object InternalReadObject(XmlReaderDelegator xmlReader, bool verifyObjectName)
DataContractSerializer(Type type, IEnumerable< Type > knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences)
ReadOnlyCollection< Type > KnownTypes
XmlDictionaryString _rootName
bool _ignoreExtensionDataObject
DataContractSerializer(Type type, IEnumerable< Type >? knownTypes)
override void WriteObjectContent(XmlDictionaryWriter writer, object? graph)
object? ReadObject(XmlDictionaryReader reader, bool verifyObjectName, DataContractResolver? dataContractResolver)
DataContractResolver? DataContractResolver
static DataContract GetDataContract(DataContract declaredTypeContract, Type declaredType, Type objectType)
static bool IsReflectionBackupAllowed()
DataContract RootContract
override void InternalWriteObjectContent(XmlWriterDelegator writer, object graph)
DataContractSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace)
override void WriteEndObject(XmlWriter writer)
void Initialize(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, IEnumerable< Type > knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, DataContractResolver dataContractResolver, bool serializeReadOnlyTypes)
void InternalWriteObjectContent(XmlWriterDelegator writer, object graph, DataContractResolver dataContractResolver)
IList< Type > knownTypeList
override bool IsStartObject(XmlDictionaryReader reader)
static bool _optionAlreadySet
override bool IsStartObject(XmlReader reader)
override? object ReadObject(XmlReader reader, bool verifyObjectName)
bool SerializeReadOnlyTypes
bool _serializeReadOnlyTypes
void Initialize(Type type, IEnumerable< Type > knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool preserveObjectReferences, DataContractResolver dataContractResolver, bool serializeReadOnlyTypes)
ISerializationSurrogateProvider _serializationSurrogateProvider
int _maxItemsInObjectGraph
int MaxItemsInObjectGraph
override void WriteObjectContent(XmlWriter writer, object? graph)
override void InternalWriteStartObject(XmlWriterDelegator writer, object graph)
bool _preserveObjectReferences
static SerializationOption _option
DataContractSerializer(Type type, string rootName, string rootNamespace, IEnumerable< Type >? knownTypes)
override? Dictionary< XmlQualifiedName, DataContract > KnownDataContracts
void WriteObject(XmlDictionaryWriter writer, object? graph, DataContractResolver? dataContractResolver)
ISerializationSurrogateProvider? SerializationSurrogateProvider
DataContractSerializer(Type type)
DataContractSerializer(Type type, string rootName, string rootNamespace)
override Type GetSerializeType(object graph)
DataContractResolver _dataContractResolver
static SerializationOption Option
override void InternalWriteObject(XmlWriterDelegator writer, object graph, DataContractResolver dataContractResolver)
override object InternalReadObject(XmlReaderDelegator xmlReader, bool verifyObjectName, DataContractResolver dataContractResolver)
static Type GetSurrogatedType(ISerializationSurrogateProvider serializationSurrogateProvider, Type type)
override? object ReadObject(XmlDictionaryReader reader, bool verifyObjectName)
override void WriteObject(XmlWriter writer, object? graph)
DataContractSerializer(Type type, XmlDictionaryString rootName, XmlDictionaryString rootNamespace, IEnumerable< Type >? knownTypes)
bool _needsContractNsAtRoot
override void InternalWriteObject(XmlWriterDelegator writer, object graph)
DataContract _rootContract
XmlDictionaryString _rootNamespace
static Type GetDataContractType(ISerializationSurrogateProvider surrogateProvider, Type type)
static object GetObjectToSerialize(ISerializationSurrogateProvider surrogateProvider, object obj, Type objType, Type membertype)
static DataContract GetDataContract(Type type)
virtual XmlDictionaryString TopLevelElementNamespace
static string GetNamespace(string key)
virtual XmlDictionaryString TopLevelElementName
static Type UnwrapNullableType(Type type)
static Exception ThrowHelperError(Exception e)
static Dictionary< XmlQualifiedName, DataContract > GetDataContractsForKnownTypes(IList< Type > knownTypeList)
static XmlObjectSerializerReadContext CreateContext(DataContractSerializer serializer, DataContract rootTypeDataContract, DataContractResolver dataContractResolver)
static object ReadRootIXmlSerializable(XmlReaderDelegator xmlReader, XmlDataContract xmlDataContract, bool isMemberType)
static XmlObjectSerializerWriteContext CreateContext(DataContractSerializer serializer, DataContract rootTypeDataContract, DataContractResolver dataContractResolver)
bool IsStartObjectHandleExceptions(XmlReaderDelegator reader)
bool CheckIfNeedsContractNsAtRoot(XmlDictionaryString name, XmlDictionaryString ns, DataContract contract)
static Exception CreateSerializationExceptionWithReaderDetails(string errorMessage, XmlReaderDelegator reader)
void WriteEndObjectHandleExceptions(XmlWriterDelegator writer)
bool IsRootXmlAny(XmlDictionaryString rootName, DataContract contract)
static void WriteNull(XmlWriterDelegator writer)
static SerializationException CreateSerializationException(string errorMessage)
void WriteObjectHandleExceptions(XmlWriterDelegator writer, object graph)
void WriteRootElement(XmlWriterDelegator writer, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns, bool needsContractNsAtRoot)
static void CheckNull(object obj, string name)
object ReadObjectHandleExceptions(XmlReaderDelegator reader, bool verifyObjectName)
bool IsStartElement(XmlReaderDelegator reader)
void WriteStartObjectHandleExceptions(XmlWriterDelegator writer, object graph)
void WriteObjectContentHandleExceptions(XmlWriterDelegator writer, object graph)
bool IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)
static string IsAnyCannotBeSerializedAsDerivedType
static string Format(string resourceFormat, object p1)
static string ValueMustBeNonNegative
static string ExceededMaxItemsQuota
static string ExpectingElementAtDeserialize
static string ExpectingElement
static string CannotSetTwice
static string IsAnyCannotBeNull
static readonly Type[] EmptyTypes