forked from topnguyen/Elect
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CheckHelper.cs
35 lines (33 loc) · 1.05 KB
/
CheckHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#region License
//--------------------------------------------------
// <License>
// <Copyright> 2018 © Top Nguyen </Copyright>
// <Url> http://topnguyen.com/ </Url>
// <Author> Top </Author>
// <Project> Elect </Project>
// <File>
// <Name> CheckHelper.cs </Name>
// <Created> 15/03/2018 4:50:02 PM </Created>
// <Key> 75aa0eec-eecf-47c5-bd1c-1be20c5b41e0 </Key>
// </File>
// <Summary>
// CheckHelper.cs is a part of Elect
// </Summary>
// <License>
//--------------------------------------------------
#endregion License
using System;
namespace Elect.Core.CheckUtils
{
public static class CheckHelper
{
/// <exception cref="ArgumentNullException"></exception>
public static void CheckNullOrWhiteSpace(string propertyValue, string propertyName)
{
if (string.IsNullOrWhiteSpace(propertyValue))
{
throw new ArgumentNullException($"{propertyName} cannot be null or empty or whitespace.", propertyName);
}
}
}
}