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.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mscorlib/src/System/Empty.cs b/src/mscorlib/src/System/Empty.cs
index f7e7486014..4790d9a383 100644
--- a/src/mscorlib/src/System/Empty.cs
+++ b/src/mscorlib/src/System/Empty.cs
@@ -25,10 +25,9 @@ namespace System {
return String.Empty;
}
- [System.Security.SecurityCritical] // auto-generated
public void GetObjectData(SerializationInfo info, StreamingContext context) {
if (info==null) {
- throw new ArgumentNullException("info");
+ throw new ArgumentNullException(nameof(info));
}
Contract.EndContractBlock();
UnitySerializationHolder.GetUnitySerializationInfo(info, UnitySerializationHolder.EmptyUnity, null, null);