diff --git a/src/CoreFoundation/CFException.cs b/src/CoreFoundation/CFException.cs index 6add8fb1ac..4808a84ea8 100644 --- a/src/CoreFoundation/CFException.cs +++ b/src/CoreFoundation/CFException.cs @@ -102,7 +102,7 @@ namespace XamCore.CoreFoundation { public static CFException FromCFError (IntPtr cfErrorHandle, bool release) { if (cfErrorHandle == IntPtr.Zero) - throw new ArgumentException ("cfErrorHandle must not be null.", "cfErrorHandle"); + throw new ArgumentNullException (nameof (cfErrorHandle)); var e = new CFException ( CFString.FetchString (CFErrorCopyDescription (cfErrorHandle), releaseHandle: true),