PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Serializers Namespace / Data­Contract­Serializer Class / Data­Contract­Serializer Methods / Data­Contract­Serializer.​Create­Serializer Method

DataContractSerializer.CreateSerializer Method

Creates a new XmlObjectSerializer. The default implementation creates a NetDataContractSerializer.

Namespace:  PostSharp.Patterns.Caching.Serializers
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
protected virtual XmlObjectSerializer CreateSerializer()

Return Value

Type: XmlObjectSerializer
A new XmlObjectSerializer.
See Also