13 references to SetType
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (2)
89
info.
SetType
(typeof(ObjectComparer<T?>));
153
info.
SetType
(typeof(ObjectComparer<T>));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (3)
155
info.
SetType
(typeof(ObjectEqualityComparer<T?>));
248
info.
SetType
(typeof(ObjectEqualityComparer<T>));
295
info.
SetType
(typeof(GenericEqualityComparer<string>));
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (1)
74
info.
SetType
(typeof(GenericEqualityComparer<string>));
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (2)
475
info.
SetType
(typeof(OrdinalComparer));
557
info.
SetType
(typeof(OrdinalComparer));
src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
28
info.
SetType
(typeof(UnitySerializationHolder));
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\Deserializer\Deserializer.cs (1)
47
/// <see cref="SerializationInfo.
SetType
(Type)"/> will get that type info serialized into the stream.
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (1)
50
/// <see cref="SerializationInfo.
SetType
(Type)"/> will get that type info serialized into the stream.
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexParseException.cs (1)
42
info.
SetType
(typeof(ArgumentException)); // To maintain serialization support with .NET Framework.
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParseException.cs (1)
42
info.
SetType
(typeof(ArgumentException)); // To maintain serialization support with .NET Framework.