diff options
Diffstat (limited to 'src/mscorlib/src/System/Reflection/RuntimeReflectionExtensions.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/RuntimeReflectionExtensions.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mscorlib/src/System/Reflection/RuntimeReflectionExtensions.cs b/src/mscorlib/src/System/Reflection/RuntimeReflectionExtensions.cs index b4ef9b9902..00ab975842 100644 --- a/src/mscorlib/src/System/Reflection/RuntimeReflectionExtensions.cs +++ b/src/mscorlib/src/System/Reflection/RuntimeReflectionExtensions.cs @@ -72,7 +72,7 @@ namespace System.Reflection public static InterfaceMapping GetRuntimeInterfaceMap(this TypeInfo typeInfo, Type interfaceType) { - if (typeInfo == null) throw new ArgumentNullException("typeInfo"); + if (typeInfo == null) throw new ArgumentNullException(nameof(typeInfo)); if (!(typeInfo is RuntimeType)) throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType")); return typeInfo.GetInterfaceMap(interfaceType); @@ -80,7 +80,7 @@ namespace System.Reflection public static MethodInfo GetMethodInfo(this Delegate del) { - if (del == null) throw new ArgumentNullException("del"); + if (del == null) throw new ArgumentNullException(nameof(del)); return del.Method; } |