11 references to ISerializationSurrogateProvider2
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\DataContractSet.cs (3)
20
private readonly
ISerializationSurrogateProvider2
? _extendedSurrogateProvider;
29
_extendedSurrogateProvider = dataContractSurrogate as
ISerializationSurrogateProvider2
;
622
internal
ISerializationSurrogateProvider2
? SerializationExtendedSurrogateProvider => _extendedSurrogateProvider;
System\Runtime\Serialization\DataContractSurrogateCaller.cs (4)
47
internal static object? GetCustomDataToExport(
ISerializationSurrogateProvider2
surrogateProvider, MemberInfo memberInfo, Type dataContractType)
54
internal static object? GetCustomDataToExport(
ISerializationSurrogateProvider2
surrogateProvider, Type clrType, Type dataContractType)
61
internal static void GetKnownCustomDataTypes(
ISerializationSurrogateProvider2
surrogateProvider, Collection<Type> customDataTypes)
68
internal static Type? GetReferencedTypeOnImport(
ISerializationSurrogateProvider2
surrogateProvider, string typeName, string typeNamespace, object? customData)
System.Runtime.Serialization.Primitives (1)
System\Runtime\Serialization\ISerializationSurrogateProvider.cs (1)
8
/// and deserialization. This interface together with <see cref="
ISerializationSurrogateProvider2
"/> (and
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
33
private static readonly object s_surrogateDataKey = typeof(
ISerializationSurrogateProvider2
);
714
if (_options?.DataContractSurrogate is
ISerializationSurrogateProvider2
surrogateProvider)
System\Runtime\Serialization\Schema\ImportOptions.cs (1)
38
/// abilities, using an <see cref="
ISerializationSurrogateProvider2
"/>ISerializationSurrogateProvider2 that also implements <see cref="ISerializationCodeDomSurrogateProvider"/> is recommended.