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.
23 lines
498 B
23 lines
498 B
namespace MultiTerm.Core.Model;
|
|
|
|
/// <summary>
|
|
/// Generic history element, which allows to use a string as history element.
|
|
/// </summary>
|
|
public class StringHistoryElement : IHistoryElement, ICloneable
|
|
{
|
|
public string Text { get; }
|
|
|
|
public string DisplayText => this.Text;
|
|
|
|
public StringHistoryElement(string text)
|
|
{
|
|
Text = text;
|
|
}
|
|
|
|
#region ICloneable implementation
|
|
public object Clone()
|
|
{
|
|
return this.MemberwiseClone();
|
|
}
|
|
#endregion
|
|
}
|
|
|