summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/ArgumentException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/ArgumentException.cs')
-rw-r--r--src/mscorlib/src/System/ArgumentException.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mscorlib/src/System/ArgumentException.cs b/src/mscorlib/src/System/ArgumentException.cs
index 8edb7e4279..f37b7690a8 100644
--- a/src/mscorlib/src/System/ArgumentException.cs
+++ b/src/mscorlib/src/System/ArgumentException.cs
@@ -82,10 +82,9 @@ namespace System {
get { return m_paramName; }
}
- [System.Security.SecurityCritical] // auto-generated_required
public override void GetObjectData(SerializationInfo info, StreamingContext context) {
if (info==null) {
- throw new ArgumentNullException("info");
+ throw new ArgumentNullException(nameof(info));
}
Contract.EndContractBlock();
base.GetObjectData(info, context);