private static string ConstructTemplateLinkView(TemplateLink templateLink) { if (templateLink == null) { return string.Empty; } StringBuilder result = new StringBuilder(); result.AppendLine(); result.AppendLine(string.Format("{0, -15}: {1}", "Uri", templateLink.Uri)); result.AppendLine(string.Format("{0, -15}: {1}", "ContentVersion", templateLink.ContentVersion)); return result.ToString(); }
private static string ToString(TemplateLink templateLink) { StringBuilder result = new StringBuilder(); if (templateLink != null) { result.AppendLine(); result.AppendLine(string.Format("{0, -15}: {1}", "Uri", templateLink.Uri)); result.AppendLine(string.Format("{0, -15}: {1}", "ContentVersion", templateLink.ContentVersion)); } return result.ToString(); }