-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCheck.cs
More file actions
30 lines (27 loc) · 886 Bytes
/
Copy pathCheck.cs
File metadata and controls
30 lines (27 loc) · 886 Bytes
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
// insightOne.SB1.Framework.Framework
// ****************************************************************************
//
// Copyright 2015 (c) Provider
// Autor: George Santos
//
// ****************************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace insightOne.SB1.Framework
{
static class Check
{
public static void IsNotNull(string paramName, object argument) {
if (null == argument) {
throw new ArgumentNullException(paramName);
}
}
public static void IsNotNullOrEmpty(string paramName, string argument) {
if (string.IsNullOrEmpty(argument)) {
throw new ArgumentException("O parâmetro não pode ser nulo ou vazio", paramName);
}
}
}
}