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.cs27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/mscorlib/src/System/Empty.cs b/src/mscorlib/src/System/Empty.cs
index 4790d9a383..502e8dfea7 100644
--- a/src/mscorlib/src/System/Empty.cs
+++ b/src/mscorlib/src/System/Empty.cs
@@ -5,28 +5,33 @@
// Empty
// This class represents an empty variant
////////////////////////////////////////////////////////////////////////////////
+
using System.Diagnostics.Contracts;
-namespace System {
-
- using System;
- using System.Runtime.Remoting;
- using System.Runtime.Serialization;
+using System;
+using System.Runtime.Remoting;
+using System.Runtime.Serialization;
+
+namespace System
+{
[Serializable]
internal sealed class Empty : ISerializable
{
- private Empty() {
+ private Empty()
+ {
}
-
+
public static readonly Empty Value = new Empty();
-
+
public override String ToString()
{
return String.Empty;
}
-
- public void GetObjectData(SerializationInfo info, StreamingContext context) {
- if (info==null) {
+
+ public void GetObjectData(SerializationInfo info, StreamingContext context)
+ {
+ if (info == null)
+ {
throw new ArgumentNullException(nameof(info));
}
Contract.EndContractBlock();