public static void AppendObsoleteSection(this StringBuilder builder, IObsoleteMetadata entity) { if (entity != null && entity.IsObsolete) { builder.Append($"Obsolete: {entity.ObsolescenceReason}{Environment.NewLine}"); } }
public static string ToToolTip(ITypedMetadata metadata, IObsoleteMetadata obsoleteMetadata) { var builder = new StringBuilder(); builder.AppendSummary(metadata.Summary); builder.AppendObsoleteSection(obsoleteMetadata); return(builder.ToString()); }
public static void AppendObsoleteSection(this StringBuilder builder, IObsoleteMetadata entity) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (entity != null && entity.IsObsolete) { builder.AppendLine($"Obsolete: {entity.ObsolescenceReason}"); } }
private Font NodeFont(IObsoleteMetadata entity) => entity.IsObsolete ? new Font(_defaultFont, FontStyle.Strikeout) : null;