summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/HandBrakeInterop/Helpers
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-12-26 20:58:55 +0000
committersr55 <[email protected]>2014-12-26 20:58:55 +0000
commited414885c5411dc7f298700d0c5061385024c503 (patch)
treed5f505cfb9799388bf7f187ffcd229b03892738b /win/CS/HandBrake.Interop/HandBrakeInterop/Helpers
parent29247cc9dfa23ea5ccdcb6c0db4508d58d7c919b (diff)
WinGui: Adding the JSON models and factories for Encoding and Anamorphic calculation. (Not in use yet)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6652 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Helpers')
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/Helpers/Validate.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Helpers/Validate.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Helpers/Validate.cs
new file mode 100644
index 000000000..d3c7d8136
--- /dev/null
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/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 HandBrake.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);
+ }
+ }
+ }
+}