From 44a58ff1b98c6096367ef2919fac0409c090478e Mon Sep 17 00:00:00 2001 From: Hisham Abdullah Bin Ateya Date: Sat, 20 Jun 2015 00:16:34 +0300 Subject: [PATCH] Using 'nameof' operator instead of magic strings --- src/MvcMusicStore.Spa/Infrastructure/PagedList.cs | 4 ++-- src/MvcMusicStore.Spa/Infrastructure/SortExpression.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MvcMusicStore.Spa/Infrastructure/PagedList.cs b/src/MvcMusicStore.Spa/Infrastructure/PagedList.cs index a2c168f9a3..611a01be75 100644 --- a/src/MvcMusicStore.Spa/Infrastructure/PagedList.cs +++ b/src/MvcMusicStore.Spa/Infrastructure/PagedList.cs @@ -44,7 +44,7 @@ namespace MvcMusicStore.Infrastructure { if (query == null) { - throw new ArgumentNullException("query"); + throw new ArgumentNullException(nameof(query)); } var pagingConfig = new PagingConfig(page, pageSize); @@ -69,7 +69,7 @@ namespace MvcMusicStore.Infrastructure { if (query == null) { - throw new ArgumentNullException("query"); + throw new ArgumentNullException(nameof(query)); } var pagingConfig = new PagingConfig(page, pageSize); diff --git a/src/MvcMusicStore.Spa/Infrastructure/SortExpression.cs b/src/MvcMusicStore.Spa/Infrastructure/SortExpression.cs index 1d7684990b..efe108f5ed 100644 --- a/src/MvcMusicStore.Spa/Infrastructure/SortExpression.cs +++ b/src/MvcMusicStore.Spa/Infrastructure/SortExpression.cs @@ -37,7 +37,7 @@ namespace MvcMusicStore.Infrastructure if (source == null) { - throw new ArgumentNullException("source"); + throw new ArgumentNullException(nameof(source)); } if (String.IsNullOrWhiteSpace(sortExpression))