superstar_v2/DBObj/Artist.cs
jasonchenwork fdd8cf047d 202508111732
調整開包廂計算關包廂時間
調整寫法
2025-08-11 17:36:01 +08:00

23 lines
654 B
C#

namespace DBObj
{
// artist OOP test
public class Artist
{
public string Name ;
public string NameSimplified ;
//public string Phonetic { get; set; }
//public string Category { get; set; }
//public int Strokes { get; set; }
public Artist(string name,string nameSimplified)
{
Name = name;
NameSimplified=nameSimplified;
}
public string getName(bool IsSimplified=false) { return IsSimplified ? NameSimplified : Name; }
public string getName() => Name;
public override string ToString() => $"Name: {Name}";
}
}