summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/Attributes
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.Interop/Attributes')
-rw-r--r--win/CS/HandBrake.Interop/Attributes/DisplayName.cs35
-rw-r--r--win/CS/HandBrake.Interop/Attributes/ShortName.cs35
2 files changed, 70 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/Attributes/DisplayName.cs b/win/CS/HandBrake.Interop/Attributes/DisplayName.cs
new file mode 100644
index 000000000..a890d97f1
--- /dev/null
+++ b/win/CS/HandBrake.Interop/Attributes/DisplayName.cs
@@ -0,0 +1,35 @@
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="DisplayName.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>
+// A Display Name for an enum value
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Attributes
+{
+ using System;
+
+ /// <summary>
+ /// A Short Name for an enum value
+ /// </summary>
+ public class DisplayName : Attribute
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="DisplayName"/> class.
+ /// </summary>
+ /// <param name="displayName">
+ /// The name name.
+ /// </param>
+ public DisplayName(string displayName)
+ {
+ this.Name = displayName;
+ }
+
+ /// <summary>
+ /// Gets the short name.
+ /// </summary>
+ public string Name { get; private set; }
+ }
+}
diff --git a/win/CS/HandBrake.Interop/Attributes/ShortName.cs b/win/CS/HandBrake.Interop/Attributes/ShortName.cs
new file mode 100644
index 000000000..1f5ef6700
--- /dev/null
+++ b/win/CS/HandBrake.Interop/Attributes/ShortName.cs
@@ -0,0 +1,35 @@
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="ShortName.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>
+// A Short Name for an enum value
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Attributes
+{
+ using System;
+
+ /// <summary>
+ /// A Short Name for an enum value
+ /// </summary>
+ public class ShortName : Attribute
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ShortName"/> class.
+ /// </summary>
+ /// <param name="shortName">
+ /// The short name.
+ /// </param>
+ public ShortName(string shortName)
+ {
+ this.Name = shortName;
+ }
+
+ /// <summary>
+ /// Gets the short name.
+ /// </summary>
+ public string Name { get; private set; }
+ }
+}