summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Interop/Helpers/Validate.cs
blob: 9725710e1c6b6f96737e02297a5ca9caa7a14f4b (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 HandBrake.ApplicationServices.Interop.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);
            }
        }
    }
}