mirror of
https://github.com/MathiasLui/CSGO-Projects.git
synced 2025-05-06 13:51:18 +00:00
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace LoreSoft.MathExpressions.Metadata
|
|
{
|
|
/// <summary>
|
|
/// Specifies an abbreviation for a instance.
|
|
/// </summary>
|
|
[AttributeUsageAttribute(AttributeTargets.All)]
|
|
public sealed class AbbreviationAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="AbbreviationAttribute"/> class.
|
|
/// </summary>
|
|
/// <param name="text">The abbreviation text.</param>
|
|
public AbbreviationAttribute(string text)
|
|
{
|
|
_text = text;
|
|
}
|
|
|
|
private string _text;
|
|
|
|
/// <summary>
|
|
/// Gets the abbreviation text.
|
|
/// </summary>
|
|
/// <value>The abbreviation text.</value>
|
|
public string Text
|
|
{
|
|
get { return _text; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
|
|
/// </summary>
|
|
/// <returns>
|
|
/// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
|
|
/// </returns>
|
|
/// <filterPriority>2</filterPriority>
|
|
public override string ToString()
|
|
{
|
|
return _text;
|
|
}
|
|
}
|
|
}
|