Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -27,10 +27,14 @@ using System.Runtime.InteropServices;
namespace IKVM.Reflection
{
#if !CORECLR
[Serializable]
#endif
public sealed class MissingAssemblyException : InvalidOperationException
{
#if !CORECLR
[NonSerialized]
#endif
private readonly MissingAssembly assembly;
internal MissingAssemblyException(MissingAssembly assembly)
@@ -39,10 +43,12 @@ namespace IKVM.Reflection
this.assembly = assembly;
}
#if !CORECLR
private MissingAssemblyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
public Assembly Assembly
{
@@ -50,10 +56,14 @@ namespace IKVM.Reflection
}
}
#if !CORECLR
[Serializable]
#endif
public sealed class MissingModuleException : InvalidOperationException
{
#if !CORECLR
[NonSerialized]
#endif
private readonly MissingModule module;
internal MissingModuleException(MissingModule module)
@@ -62,10 +72,12 @@ namespace IKVM.Reflection
this.module = module;
}
#if !CORECLR
private MissingModuleException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
public Module Module
{
@@ -73,10 +85,14 @@ namespace IKVM.Reflection
}
}
#if !CORECLR
[Serializable]
#endif
public sealed class MissingMemberException : InvalidOperationException
{
#if !CORECLR
[NonSerialized]
#endif
private readonly MemberInfo member;
internal MissingMemberException(MemberInfo member)
@@ -85,10 +101,12 @@ namespace IKVM.Reflection
this.member = member;
}
#if !CORECLR
private MissingMemberException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
public MemberInfo MemberInfo
{