summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Helpers/Validate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Helpers/Validate.cs')
-rw-r--r--win/CS/HandBrakeWPF/Helpers/Validate.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/Validate.cs b/win/CS/HandBrakeWPF/Helpers/Validate.cs
new file mode 100644
index 000000000..7d307dfbc
--- /dev/null
+++ b/win/CS/HandBrakeWPF/Helpers/Validate.cs
@@ -0,0 +1,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);
+ }
+ }
+ }
+}