mirror of
https://github.com/flashwave/topmostfriend.git
synced 2024-11-22 17:58:46 +00:00
20 lines
454 B
C#
20 lines
454 B
C#
|
using System.Xml.Serialization;
|
|||
|
|
|||
|
namespace TopMostFriend.Languages {
|
|||
|
public class LanguageString {
|
|||
|
[XmlAttribute(@"name")]
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
[XmlText]
|
|||
|
public string Value { get; set; }
|
|||
|
|
|||
|
public string Format(params object[] args) {
|
|||
|
return string.Format(Value, args);
|
|||
|
}
|
|||
|
|
|||
|
public override string ToString() {
|
|||
|
return $@"{Name}: {Value}";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|