blob: 7d307dfbc3bd207c96daa0778ee0bfd16c55c932 (
plain)
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
36
37
38
39
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Validate.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// The validate.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Helpers
{
using System;
/// <summary>
/// The validate.
/// </summary>
public class Validate
{
/// <summary>
/// The not null.
/// </summary>
/// <param name="item">
/// The item.
/// </param>
/// <param name="message">
/// The message.
/// </param>
/// <exception cref="ArgumentException">
/// Thrown when the input object is null
/// </exception>
public static void NotNull(object item, string message)
{
if (item == null)
{
throw new ArgumentException(message);
}
}
}
}
|