namespace OpenCover.Framework.Model { /// /// A skipped entity that also carries a Summary object which is not /// always serialized /// public abstract class SummarySkippedEntity : SkippedEntity { /// /// Initialise /// protected SummarySkippedEntity() { Summary = new Summary(); } /// /// A Summary of results for a entity /// public Summary Summary { get; set; } /// /// Control serialization of the Summary object /// /// public bool ShouldSerializeSummary() { return !ShouldSerializeSkippedDueTo(); } } }