summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/WeakReferenceExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/WeakReferenceExtensions.cs')
-rw-r--r--Xamarin.Forms.Core/WeakReferenceExtensions.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/WeakReferenceExtensions.cs b/Xamarin.Forms.Core/WeakReferenceExtensions.cs
index e4e883a4..a35331c4 100644
--- a/Xamarin.Forms.Core/WeakReferenceExtensions.cs
+++ b/Xamarin.Forms.Core/WeakReferenceExtensions.cs
@@ -2,12 +2,12 @@
namespace Xamarin.Forms
{
- internal static class WeakReferenceExtensions
+ static class WeakReferenceExtensions
{
internal static bool TryGetTarget<T>(this WeakReference self, out T target) where T : class
{
if (self == null)
- throw new ArgumentNullException("self");
+ throw new ArgumentNullException(nameof(self));
target = (T)self.Target;
return target != null;