You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

63 lines
1.7 KiB

using System;
using System.Collections.Generic;
using System.Text;
namespace ReZero.SuperAPI
{
/// <summary>
/// Represents an attribute for Chinese text.
/// </summary>
[AttributeUsage(AttributeTargets.All)]
public class ChineseTextAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="ChineseTextAttribute"/> class with the specified text.
/// </summary>
/// <param name="text">The Chinese text.</param>
public ChineseTextAttribute(string text)
{
this.Text = text;
}
/// <summary>
/// Gets or sets the Chinese text.
/// </summary>
public string? Text { get; set; }
}
/// <summary>
/// Represents an attribute for English text.
/// </summary>
[AttributeUsage(AttributeTargets.All)]
public class EnglishTextAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="EnglishTextAttribute"/> class with the specified text.
/// </summary>
/// <param name="text">The English text.</param>
public EnglishTextAttribute(string text)
{
this.Text = text;
}
/// <summary>
/// Gets or sets the English text.
/// </summary>
public string? Text { get; set; }
}
[AttributeUsage(AttributeTargets.All)]
public class TextGroupAttribute : Attribute
{
public string? cnText { get; set; }
public string? enText { get; set; }
public TextGroupAttribute(string cnText,string enText)
{
this.cnText = cnText;
this.enText = cnText;
}
}
}