有什么方法可以JsonConvert.SerializeObject(this);
在类中呈现函数的结果?
public string Name { get; private set; } // renders fine in the outputted json
public string AdHocRecipientsStub()// I want this also in the outputted json
{
return AdHocRecipients.ToString().Substring(0, 15) + "...";
}