Files
Umbraco-CMS/src/Umbraco.Core/Deploy/Difference.cs

29 lines
749 B
C#
Raw Normal View History

2017-07-20 11:21:28 +02:00
namespace Umbraco.Core.Deploy
2017-05-12 14:49:44 +02:00
{
public class Difference
{
public Difference(string title, string text = null, string category = null)
{
Title = title;
Text = text;
Category = category;
}
public string Title { get; set; }
public string Text { get; set; }
public string Category { get; set; }
public override string ToString()
{
var s = Title;
if (!string.IsNullOrWhiteSpace(Category)) s += string.Format("[{0}]", Category);
if (!string.IsNullOrWhiteSpace(Text))
{
if (s.Length > 0) s += ":";
s += Text;
}
return s;
}
}
2017-07-20 11:21:28 +02:00
}