summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/ArgumentOutOfRangeException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/ArgumentOutOfRangeException.cs')
-rw-r--r--src/mscorlib/src/System/ArgumentOutOfRangeException.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mscorlib/src/System/ArgumentOutOfRangeException.cs b/src/mscorlib/src/System/ArgumentOutOfRangeException.cs
index a54380b39d..78a90db34e 100644
--- a/src/mscorlib/src/System/ArgumentOutOfRangeException.cs
+++ b/src/mscorlib/src/System/ArgumentOutOfRangeException.cs
@@ -89,10 +89,9 @@ namespace System {
get { return m_actualValue; }
}
- [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);