Merge pull request #504 from hishamco/dev

Using 'nameof' operator instead of magic strings
This commit is contained in:
Eilon Lipton 2015-06-19 14:44:09 -07:00
commit 2f87f38e80
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -37,7 +37,7 @@ namespace MvcMusicStore.Infrastructure
if (source == null)
{
throw new ArgumentNullException("source");
throw new ArgumentNullException(nameof(source));
}
if (String.IsNullOrWhiteSpace(sortExpression))