diff options
Diffstat (limited to 'src/mscorlib/src/System/Collections/Comparer.cs')
-rw-r--r-- | src/mscorlib/src/System/Collections/Comparer.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/Collections/Comparer.cs b/src/mscorlib/src/System/Collections/Comparer.cs index 11e26252a8..0e3c78b529 100644 --- a/src/mscorlib/src/System/Collections/Comparer.cs +++ b/src/mscorlib/src/System/Collections/Comparer.cs @@ -36,7 +36,7 @@ namespace System.Collections { public Comparer(CultureInfo culture) { if (culture==null) { - throw new ArgumentNullException("culture"); + throw new ArgumentNullException(nameof(culture)); } Contract.EndContractBlock(); m_compareInfo = culture.CompareInfo; @@ -83,10 +83,9 @@ namespace System.Collections { throw new ArgumentException(Environment.GetResourceString("Argument_ImplementIComparable")); } - [System.Security.SecurityCritical] // auto-generated_required public void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { - throw new ArgumentNullException("info"); + throw new ArgumentNullException(nameof(info)); } Contract.EndContractBlock(); |