25 references to DataContractSerializer
Microsoft.AspNetCore.Authentication.Test (1)
WsFederation\CustomStateDataFormat.cs (1)
14private readonly DataContractSerializer serializer = new DataContractSerializer(typeof(AuthenticationProperties));
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (9)
ProblemDetailsWrapperTest.cs (2)
25var serializer = new DataContractSerializer(typeof(ProblemDetailsWrapper)); 86var dataContractSerializer = new DataContractSerializer(wrapper.GetType());
SerializableErrorWrapperTests.cs (2)
63var serializer = new DataContractSerializer(typeof(SerializableErrorWrapper)); 116var dataContractSerializer = new DataContractSerializer(typeof(SerializableErrorWrapper));
ValidationProblemDetailsWrapperTest.cs (5)
29var serializer = new DataContractSerializer(typeof(ValidationProblemDetailsWrapper)); 85var serializer = new DataContractSerializer(typeof(ValidationProblemDetailsWrapper)); 123var serializer = new DataContractSerializer(typeof(ValidationProblemDetailsWrapper)); 175var dataContractSerializer = new DataContractSerializer(wrapper.GetType()); 213var dataContractSerializer = new DataContractSerializer(wrapper.GetType());
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ContentNegotiationTest.cs (1)
516var xmlDeserializer = new DataContractSerializer(typeof(Contact));
XmlDataContractSerializerInputFormatterTest.cs (2)
66var dcsSerializer = new DataContractSerializer(typeof(ModelBindingInfo)); 97var dcsSerializer = new DataContractSerializer(typeof(ModelBindingInfo));
Microsoft.Build.Tasks.Core (1)
AssemblyFolderCollection.cs (1)
30DataContractSerializer serializer = new DataContractSerializer(typeof(AssemblyFolderCollection));
Microsoft.Build.Utilities.Core (1)
AssemblyFolderCollection.cs (1)
30DataContractSerializer serializer = new DataContractSerializer(typeof(AssemblyFolderCollection));
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (2)
37Dim serializer As New DataContractSerializer(GetType(String())) 53Dim serializer As New DataContractSerializer(GetType(String()))
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (1)
272DataContractSerializer serializer = new(typeof(T));
System.ServiceModel.Primitives.Tests (2)
ServiceModel\FaultExceptionTest.cs (2)
43var dcs = new DataContractSerializer(typeof(FaultException<FaultDetail>)); 63var dcs = new DataContractSerializer(typeof(FaultException));
System.ServiceModel.Syndication (5)
System\ServiceModel\Syndication\SyndicationElementExtension.cs (2)
70dataContractSerializer ??= new DataContractSerializer(dataContractExtension.GetType()); 123public TExtension GetObject<TExtension>() => GetObject<TExtension>(new DataContractSerializer(typeof(TExtension)));
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (2)
71dataContractSerializer ??= new DataContractSerializer(dataContractExtension.GetType()); 106return ReadElementExtensions<TExtension>(extensionName, extensionNamespace, new DataContractSerializer(typeof(TExtension)));
System\ServiceModel\Syndication\XmlSyndicationContent.cs (1)
103dataContractSerializer ??= new DataContractSerializer(typeof(TContent));