namespace System.Reflection
{
+ [Serializable]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public sealed class ReflectionTypeLoadException : SystemException, ISerializable
{
public ReflectionTypeLoadException(Type[] classes, Exception[] exceptions)
HResult = HResults.COR_E_REFLECTIONTYPELOAD;
}
+ private ReflectionTypeLoadException(SerializationInfo info, StreamingContext context)
+ : base(info, context)
+ {
+ LoaderExceptions = (Exception[])(info.GetValue("Exceptions", typeof(Exception[])));
+ }
+
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
+ info.AddValue("Types", null, typeof(Type[]));
+ info.AddValue("Exceptions", LoaderExceptions, typeof(Exception[]));
}
public Type[] Types { get; }
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SecurityException : SystemException
{
+ private const string DemandedName = "Demanded";
+ private const string GrantedSetName = "GrantedSet";
+ private const string RefusedSetName = "RefusedSet";
+ private const string DeniedName = "Denied";
+ private const string PermitOnlyName = "PermitOnly";
+ private const string UrlName = "Url";
+
public SecurityException()
: base(SR.Arg_SecurityException)
{
protected SecurityException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
+ Demanded = (string)info.GetValueNoThrow(DemandedName, typeof(string));
+ GrantedSet = (string)info.GetValueNoThrow(GrantedSetName, typeof(string));
+ RefusedSet = (string)info.GetValueNoThrow(RefusedSetName, typeof(string));
+ DenySetInstance = (string)info.GetValueNoThrow(DeniedName, typeof(string));
+ PermitOnlySetInstance = (string)info.GetValueNoThrow(PermitOnlyName, typeof(string));
+ Url = (string)info.GetValueNoThrow(UrlName, typeof(string));
}
public override string ToString() => base.ToString();
- public override void GetObjectData(SerializationInfo info, StreamingContext context) => base.GetObjectData(info, context);
+ public override void GetObjectData(SerializationInfo info, StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ info.AddValue(DemandedName, Demanded, typeof(string));
+ info.AddValue(GrantedSetName, GrantedSet, typeof(string));
+ info.AddValue(RefusedSetName, RefusedSet, typeof(string));
+ info.AddValue(DeniedName, DenySetInstance, typeof(string));
+ info.AddValue(PermitOnlyName, PermitOnlySetInstance, typeof(string));
+ info.AddValue(UrlName, Url, typeof(string));
+ }
public object Demanded { get; set; }
public object DenySetInstance { get; set; }
namespace System.Threading
{
[Serializable]
- [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class LockRecursionException : System.Exception
{
public LockRecursionException()
namespace System.Threading
{
[Serializable]
- [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class SemaphoreFullException : SystemException
{
public SemaphoreFullException() : base(SR.Threading_SemaphoreFullException)
namespace System
{
[Serializable]
- [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+ [System.Runtime.CompilerServices.TypeForwardedFrom("System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public class TimeZoneNotFoundException : Exception
{
public TimeZoneNotFoundException()
=============================================================================*/
-using System;
using System.Runtime.Serialization;
using System.Runtime.CompilerServices;
-using System.Globalization;
-using System.Runtime.Versioning;
-using System.Diagnostics.Contracts;
namespace System
{
protected MissingMemberException(SerializationInfo info, StreamingContext context) : base(info, context)
{
- ClassName = (string)info.GetString("MMClassName");
- MemberName = (string)info.GetString("MMMemberName");
+ ClassName = info.GetString("MMClassName");
+ MemberName = info.GetString("MMMemberName");
Signature = (byte[])info.GetValue("MMSignature", typeof(byte[]));
}
{
base.GetObjectData(info, context);
info.AddValue("MMClassName", ClassName, typeof(string));
+ info.AddValue("MMMemberName", MemberName, typeof(string));
info.AddValue("MMSignature", Signature, typeof(byte[]));
}