diff options
author | sr55 <[email protected]> | 2017-03-17 22:33:48 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-03-17 22:33:48 +0000 |
commit | efabefce58e323bc453aa7f7e65004d8880f9efa (patch) | |
tree | 79505319e9a1b46f6ef77dfc4290364525668a6c /win/CS/HandBrake.ApplicationServices/Attributes | |
parent | 6c6570a326e12edb04498b3272b916eb8d431319 (diff) |
WinGui: Remove Usage of System.ComponentModel.DataAnnotations - DisplayName as it's not currently compatible with .NET standard.
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Attributes')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Attributes/DisplayName.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Attributes/DisplayName.cs b/win/CS/HandBrake.ApplicationServices/Attributes/DisplayName.cs new file mode 100644 index 000000000..e96c9ab73 --- /dev/null +++ b/win/CS/HandBrake.ApplicationServices/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.ApplicationServices.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; } + } +} |