1 implementation of ISerializationSurrogate
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
372internal sealed class SurrogateForCyclicalReference : ISerializationSurrogate
42 references to ISerializationSurrogate
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
755[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ISerializationSurrogate))]
netstandard (1)
netstandard.cs (1)
1777[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ISerializationSurrogate))]
System.Private.Windows.Core (12)
System\Private\Windows\Core\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (1)
36ISerializationSurrogate? surrogate = deserializer.GetSurrogate(type);
System\Private\Windows\Core\BinaryFormat\Deserializer\ClassRecordSerializationInfoDeserializer.cs (2)
23private readonly ISerializationSurrogate? _surrogate; 31ISerializationSurrogate? surrogate,
System\Private\Windows\Core\BinaryFormat\Deserializer\DeserializationOptions.cs (1)
27/// Optional type <see cref="ISerializationSurrogate"/> provider.
System\Private\Windows\Core\BinaryFormat\Deserializer\Deserializer.cs (5)
28/// <see cref="ISerializationSurrogate"/> call backs if there is any risk of the objects enabling a cycle. 34/// surrogate (<see cref="ISerializationSurrogate"/>) needs to dereference with potential cycles it would require 65private readonly Dictionary<Type, ISerializationSurrogate?>? _surrogates; 253ISerializationSurrogate? IDeserializer.GetSurrogate(Type type) 264if (!_surrogates.TryGetValue(type, out ISerializationSurrogate? surrogate))
System\Private\Windows\Core\BinaryFormat\Deserializer\IDeserializer.cs (1)
70ISerializationSurrogate? GetSurrogate(Type type);
System\Private\Windows\Core\BinaryFormat\Deserializer\PendingSerializationInfo.cs (2)
16private readonly ISerializationSurrogate? _surrogate; 22ISerializationSurrogate? surrogate)
System.Resources.Extensions (12)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.Options.cs (1)
26/// Optional type <see cref="ISerializationSurrogate"/> provider.
System\Resources\Extensions\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (1)
36ISerializationSurrogate? surrogate = deserializer.GetSurrogate(type);
System\Resources\Extensions\BinaryFormat\Deserializer\ClassRecordSerializationInfoDeserializer.cs (2)
24private readonly ISerializationSurrogate? _surrogate; 32ISerializationSurrogate? surrogate,
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (5)
30/// <see cref="ISerializationSurrogate"/> call backs if there is any risk of the objects enabling a cycle. 36/// surrogate (<see cref="ISerializationSurrogate"/>) needs to dereference with potential cycles it would require 67private readonly Dictionary<Type, ISerializationSurrogate?>? _surrogates; 257ISerializationSurrogate? IDeserializer.GetSurrogate(Type type) 268if (!_surrogates.TryGetValue(type, out ISerializationSurrogate? surrogate))
System\Resources\Extensions\BinaryFormat\Deserializer\IDeserializer.cs (1)
71ISerializationSurrogate? GetSurrogate(Type type);
System\Resources\Extensions\BinaryFormat\Deserializer\PendingSerializationInfo.cs (2)
17private readonly ISerializationSurrogate? _surrogate; 23ISerializationSurrogate? surrogate)
System.Runtime.Serialization.Formatters (16)
System\Runtime\Serialization\FormatterServices.cs (4)
283public static ISerializationSurrogate GetSurrogateForCyclicalReference(ISerializationSurrogate innerSurrogate) 374private readonly ISerializationSurrogate _innerSurrogate; 376internal SurrogateForCyclicalReference(ISerializationSurrogate innerSurrogate)
System\Runtime\Serialization\ISurrogateSelector.cs (1)
10ISerializationSurrogate? GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector);
System\Runtime\Serialization\ObjectManager.cs (7)
179ISerializationSurrogate? surrogate = holder.Surrogate; 676ISerializationSurrogate? surrogate = null; 1026internal ISerializationSurrogate? _surrogate; 1041object? obj, long objID, SerializationInfo? info, ISerializationSurrogate? surrogate, 1078string? obj, long objID, SerializationInfo? info, ISerializationSurrogate? surrogate, 1200object obj, SerializationInfo? info, ISerializationSurrogate? surrogate, long idOfContainer, 1343internal ISerializationSurrogate? Surrogate => _surrogate;
System\Runtime\Serialization\SurrogateSelector.cs (4)
15public virtual void AddSurrogate(Type type, StreamingContext context, ISerializationSurrogate surrogate) 145public virtual ISerializationSurrogate? GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector) 152ISerializationSurrogate? temp = (ISerializationSurrogate?)_surrogates[key];