diff options
Diffstat (limited to 'src/mscorlib/shared/System/Reflection/Missing.cs')
-rw-r--r-- | src/mscorlib/shared/System/Reflection/Missing.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mscorlib/shared/System/Reflection/Missing.cs b/src/mscorlib/shared/System/Reflection/Missing.cs new file mode 100644 index 0000000000..fa32d43ccb --- /dev/null +++ b/src/mscorlib/shared/System/Reflection/Missing.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Runtime.Serialization; + +namespace System.Reflection +{ + [Serializable] + public sealed class Missing : ISerializable + { + public static readonly Missing Value = new Missing(); + + private Missing() { } + + void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) + { + if (info == null) + throw new ArgumentNullException(nameof(info)); + + UnitySerializationHolder.GetUnitySerializationInfo(info, this); + } + } +} |