13 references to SetType
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (2)
89info.SetType(typeof(ObjectComparer<T?>)); 153info.SetType(typeof(ObjectComparer<T>));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (3)
178info.SetType(typeof(ObjectEqualityComparer<T?>)); 271info.SetType(typeof(ObjectEqualityComparer<T>)); 318info.SetType(typeof(GenericEqualityComparer<string>));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\NonRandomizedStringEqualityComparer.cs (1)
74info.SetType(typeof(GenericEqualityComparer<string>));
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (2)
473info.SetType(typeof(OrdinalComparer)); 555info.SetType(typeof(OrdinalComparer));
src\runtime\src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
28info.SetType(typeof(UnitySerializationHolder));
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)
56info.SetType(typeof(ArgumentException)); // To maintain serialization support with .NET Framework.
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParseException.cs (1)
56info.SetType(typeof(ArgumentException)); // To maintain serialization support with .NET Framework.
System.Transactions.Local (1)
System\Transactions\Oletx\OletxTransaction.cs (1)
452serializationInfo.SetType(typeof(OletxTransaction));