-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensured that Intellisense (XML-Doc) comments are present on all publi…
…c items.
- Loading branch information
1 parent
9c49134
commit 62ac97f
Showing
18 changed files
with
1,130 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
// This file is part of the TA.NexDome.AscomServer project | ||
// Copyright © 2019-2019 Tigra Astronomy, all rights reserved. | ||
// This file is part of the TA.Utils project | ||
// Copyright © 2016-2020 Tigra Astronomy, all rights reserved. | ||
// File: DisplayEquivalentAttribute.cs Last modified: 2020-07-13@02:11 by Tim Long | ||
|
||
using System; | ||
|
||
namespace TA.Utils.Core | ||
{ | ||
/// <summary> | ||
/// When applied to an enum member or field, specifies a string that should be used for | ||
/// display purposes instead of the identifier name. This can be useful within code that | ||
/// must render HTML markup from an enumerated type. | ||
/// When applied to an enum member or field, specifies a string that should be used for display | ||
/// purposes instead of the identifier name. This can be useful within code that must render HTML | ||
/// markup from an enumerated type. | ||
/// </summary> | ||
/// <seealso cref="System.Attribute" /> | ||
/// <seealso cref="EnumExtensions.DisplayEquivalent" /> | ||
[AttributeUsage(AttributeTargets.Field)] | ||
public sealed class DisplayEquivalentAttribute : Attribute | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the | ||
/// <see cref="T:TA.Utils.Core.DisplayEquivalentAttribute" /> class. | ||
/// </summary> | ||
/// <param name="text">The text to be shown on the display instead of the value name.</param> | ||
public DisplayEquivalentAttribute(string text) => Value = text; | ||
|
||
/// <summary>Gets the display text value.</summary> | ||
/// <value>The display text to be used instead of the enumerated value name.</value> | ||
public string Value { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.