summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Empty.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Empty.cs')
-rw-r--r--src/mscorlib/src/System/Empty.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mscorlib/src/System/Empty.cs b/src/mscorlib/src/System/Empty.cs
index 502e8dfea7..2b585b3141 100644
--- a/src/mscorlib/src/System/Empty.cs
+++ b/src/mscorlib/src/System/Empty.cs
@@ -9,12 +9,10 @@
using System.Diagnostics.Contracts;
using System;
-using System.Runtime.Remoting;
using System.Runtime.Serialization;
namespace System
{
- [Serializable]
internal sealed class Empty : ISerializable
{
private Empty()
@@ -30,12 +28,7 @@ namespace System
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
- if (info == null)
- {
- throw new ArgumentNullException(nameof(info));
- }
- Contract.EndContractBlock();
- UnitySerializationHolder.GetUnitySerializationInfo(info, UnitySerializationHolder.EmptyUnity, null, null);
+ throw new PlatformNotSupportedException();
}
}
}