1 implementation of ISerializationSurrogate
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
372
internal 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)
36
ISerializationSurrogate
? surrogate = deserializer.GetSurrogate(type);
System\Private\Windows\Core\BinaryFormat\Deserializer\ClassRecordSerializationInfoDeserializer.cs (2)
23
private readonly
ISerializationSurrogate
? _surrogate;
31
ISerializationSurrogate
? 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
65
private readonly Dictionary<Type,
ISerializationSurrogate
?>? _surrogates;
253
ISerializationSurrogate
? IDeserializer.GetSurrogate(Type type)
264
if (!_surrogates.TryGetValue(type, out
ISerializationSurrogate
? surrogate))
System\Private\Windows\Core\BinaryFormat\Deserializer\IDeserializer.cs (1)
70
ISerializationSurrogate
? GetSurrogate(Type type);
System\Private\Windows\Core\BinaryFormat\Deserializer\PendingSerializationInfo.cs (2)
16
private readonly
ISerializationSurrogate
? _surrogate;
22
ISerializationSurrogate
? 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)
36
ISerializationSurrogate
? surrogate = deserializer.GetSurrogate(type);
System\Resources\Extensions\BinaryFormat\Deserializer\ClassRecordSerializationInfoDeserializer.cs (2)
24
private readonly
ISerializationSurrogate
? _surrogate;
32
ISerializationSurrogate
? 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
67
private readonly Dictionary<Type,
ISerializationSurrogate
?>? _surrogates;
257
ISerializationSurrogate
? IDeserializer.GetSurrogate(Type type)
268
if (!_surrogates.TryGetValue(type, out
ISerializationSurrogate
? surrogate))
System\Resources\Extensions\BinaryFormat\Deserializer\IDeserializer.cs (1)
71
ISerializationSurrogate
? GetSurrogate(Type type);
System\Resources\Extensions\BinaryFormat\Deserializer\PendingSerializationInfo.cs (2)
17
private readonly
ISerializationSurrogate
? _surrogate;
23
ISerializationSurrogate
? surrogate)
System.Runtime.Serialization.Formatters (16)
System\Runtime\Serialization\FormatterServices.cs (4)
283
public static
ISerializationSurrogate
GetSurrogateForCyclicalReference(
ISerializationSurrogate
innerSurrogate)
374
private readonly
ISerializationSurrogate
_innerSurrogate;
376
internal SurrogateForCyclicalReference(
ISerializationSurrogate
innerSurrogate)
System\Runtime\Serialization\ISurrogateSelector.cs (1)
10
ISerializationSurrogate
? GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector);
System\Runtime\Serialization\ObjectManager.cs (7)
179
ISerializationSurrogate
? surrogate = holder.Surrogate;
676
ISerializationSurrogate
? surrogate = null;
1026
internal
ISerializationSurrogate
? _surrogate;
1041
object? obj, long objID, SerializationInfo? info,
ISerializationSurrogate
? surrogate,
1078
string? obj, long objID, SerializationInfo? info,
ISerializationSurrogate
? surrogate,
1200
object obj, SerializationInfo? info,
ISerializationSurrogate
? surrogate, long idOfContainer,
1343
internal
ISerializationSurrogate
? Surrogate => _surrogate;
System\Runtime\Serialization\SurrogateSelector.cs (4)
15
public virtual void AddSurrogate(Type type, StreamingContext context,
ISerializationSurrogate
surrogate)
145
public virtual
ISerializationSurrogate
? GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector)
152
ISerializationSurrogate
? temp = (
ISerializationSurrogate
?)_surrogates[key];