61 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
84 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
98 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
104 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
110 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
116 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
122 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
132 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
138 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
141 if (settings ==
null)
148 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
154 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
160 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
166 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
173 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
179 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
185 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
191 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
197 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
203 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
209 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
218 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
224 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
230 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
236 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
242 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
248 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
262 for (
int i = 0; i <
jsonName.Length; i++)
319 return elementName == name;
324 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
332 writer.WriteAttributeString(
null,
"type",
null,
"null");
335 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
350 return graph.GetType();
355 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
365 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
392 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
398 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
406 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
448 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
453 writer.WriteStartElement(
"a",
"item",
"item");
462 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
479 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
509 [
RequiresUnreferencedCode(
"Data Contract Serialization and Deserialization might require types that cannot be statically analyzed. Make sure all of the required types are preserved.")]
525 [
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 IsCollection(Type type)
static DataContract GetDataContract(DataContract declaredTypeContract, Type declaredType, Type objectType)
static string GetClrTypeFullName(Type type)
static DataContract GetDataContract(Type type)
static bool IsValidNCName(string name)
static Exception ThrowHelperError(Exception e)
static Type TypeOfKeyValuePair
static Type TypeOfKeyValue
IEnumerable< Type >? KnownTypes
bool IgnoreExtensionDataObject
bool SerializeReadOnlyTypes
DateTimeFormat? DateTimeFormat
int MaxItemsInObjectGraph
bool UseSimpleDictionaryFormat
EmitTypeInformation EmitTypeInformation
DataContractJsonSerializer(Type type, XmlDictionaryString rootName, IEnumerable< Type > knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, bool alwaysEmitTypeInformation)
static void WriteJsonNull(XmlWriterDelegator writer)
override? object ReadObject(XmlDictionaryReader reader, bool verifyObjectName)
override void InternalWriteObject(XmlWriterDelegator writer, object graph)
DataContractJsonSerializer(Type type)
override void WriteEndObject(XmlDictionaryWriter writer)
IList< Type > knownTypeList
override bool IsStartObject(XmlDictionaryReader reader)
override void WriteObject(Stream stream, object? graph)
override void WriteStartObject(XmlDictionaryWriter writer, object? graph)
override bool InternalIsStartObject(XmlReaderDelegator reader)
void Initialize(Type type, XmlDictionaryString rootName, IEnumerable< Type > knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, EmitTypeInformation emitTypeInformation, bool serializeReadOnlyTypes, DateTimeFormat dateTimeFormat, bool useSimpleDictionaryFormat)
bool _serializeReadOnlyTypes
static string ConvertXmlNameToJsonName(string xmlName)
override void WriteObject(XmlDictionaryWriter writer, object? graph)
Dictionary< XmlQualifiedName, DataContract > knownDataContracts
override void WriteObjectContent(XmlWriter writer, object? graph)
override void WriteObject(XmlWriter writer, object? graph)
override void WriteEndObject(XmlWriter writer)
static bool CheckIfJsonNameRequiresMapping(XmlDictionaryString jsonName)
DataContractJsonSerializer(Type type, XmlDictionaryString? rootName, IEnumerable< Type >? knownTypes)
override? Dictionary< XmlQualifiedName, DataContract > KnownDataContracts
override Type GetDeserializeType()
static bool IsJsonLocalName(XmlReaderDelegator reader, string elementName)
bool _ignoreExtensionDataObject
static bool CheckIfXmlNameRequiresMapping(XmlDictionaryString xmlName)
override void InternalWriteObjectContent(XmlWriterDelegator writer, object graph)
DataContractJsonSerializer(Type type, string? rootName, IEnumerable< Type >? knownTypes)
DataContract _rootContract
bool UseSimpleDictionaryFormat
EmitTypeInformation _emitTypeInformation
XmlDictionaryString _rootName
ReadOnlyCollection< Type > _knownTypeCollection
void AddCollectionItemTypeToKnownTypes(Type knownType)
static bool CheckIfXmlNameRequiresMapping(string xmlName)
override object InternalReadObject(XmlReaderDelegator xmlReader, bool verifyObjectName)
static XmlDictionaryString ConvertXmlNameToJsonName(XmlDictionaryString xmlName)
DataContract RootContract
DataContractJsonSerializer(Type type, XmlDictionaryString? rootName)
int MaxItemsInObjectGraph
XmlDictionaryString RootName
ReadOnlyCollection< Type > KnownTypes
static void WriteJsonValue(JsonDataContract contract, XmlWriterDelegator writer, object graph, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
bool _useSimpleDictionaryFormat
void Initialize(Type type, IEnumerable< Type > knownTypes, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, EmitTypeInformation emitTypeInformation, bool serializeReadOnlyTypes, DateTimeFormat dateTimeFormat, bool useSimpleDictionaryFormat)
bool SerializeReadOnlyTypes
DataContractJsonSerializer(Type type, IEnumerable< Type >? knownTypes)
override? object ReadObject(Stream stream)
override? object ReadObject(XmlDictionaryReader reader)
override void WriteObjectContent(XmlDictionaryWriter writer, object? graph)
override void InternalWriteEndObject(XmlWriterDelegator writer)
bool IgnoreExtensionDataObject
static void CheckIfTypeIsReference(DataContract dataContract)
override void WriteStartObject(XmlWriter writer, object? graph)
bool _rootNameRequiresMapping
override? object ReadObject(XmlReader reader, bool verifyObjectName)
DataContractJsonSerializer(Type type, string? rootName)
DateTimeFormat _dateTimeFormat
DataContractJsonSerializer(Type type, DataContractJsonSerializerSettings? settings)
override Type GetSerializeType(object graph)
int _maxItemsInObjectGraph
override? object ReadObject(XmlReader reader)
static object ReadJsonValue(DataContract contract, XmlReaderDelegator reader, XmlObjectSerializerReadContextComplexJson context)
static bool CheckIfJsonNameRequiresMapping(string jsonName)
override void InternalWriteStartObject(XmlWriterDelegator writer, object graph)
static DataContract GetDataContract(DataContract declaredTypeContract, Type declaredType, Type objectType)
override bool IsStartObject(XmlReader reader)
static JsonDataContract GetJsonDataContract(DataContract traditionalDataContract)
static readonly XmlDictionaryString rootDictionaryString
static XmlDictionaryWriter CreateJsonWriter(Stream stream)
static XmlDictionaryReader CreateJsonReader(Stream stream, XmlDictionaryReaderQuotas quotas)
static bool CharacterNeedsEscaping(char ch)
static bool TryGetJsonLocalName(XmlReaderDelegator xmlReader, [NotNullWhen(true)] out string name)
static XmlObjectSerializerReadContextComplexJson CreateContext(DataContractJsonSerializer serializer, DataContract rootTypeDataContract)
static XmlObjectSerializerWriteContextComplexJson CreateContext(DataContractJsonSerializer serializer, DataContract rootTypeDataContract)
static Dictionary< XmlQualifiedName, DataContract > GetDataContractsForKnownTypes(IList< Type > knownTypeList)
bool IsStartObjectHandleExceptions(XmlReaderDelegator reader)
static Exception CreateSerializationExceptionWithReaderDetails(string errorMessage, XmlReaderDelegator reader)
void WriteEndObjectHandleExceptions(XmlWriterDelegator writer)
static SerializationException CreateSerializationException(string errorMessage)
void WriteObjectHandleExceptions(XmlWriterDelegator writer, object graph)
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 JsonUnsupportedForIsReference
static string Format(string resourceFormat, object p1)
static string ValueMustBeNonNegative
static string ExceededMaxItemsQuota
static string ExpectingElementAtDeserialize
static string ExpectingElement
static readonly Type[] EmptyTypes
static ? string DecodeName(string? name)
static XmlDictionaryReaderQuotas Max
static XmlDictionaryString Empty
virtual XmlDictionaryString Add(string value)