16,554
社区成员
发帖
与我相关
我的任务
分享
public interface IPublishable
{
String Title { get; }
String Content { get;}
}
public class Post : IPublishable
{
private string _Title;
public string Title
{
get { return _Title; }
set
{
_Title = value;
}
}
private string _Content;
public string Content
{
get { return _Content; }
set
{
if (_Content != value)
{
_Content = value;
}
}
}
}