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