public override string GetSummary() { if (!string.IsNullOrEmpty(description)) { return(description); } string summary = invokeType.ToString() + " "; switch (invokeType) { default: case InvokeType.Static: summary += staticEvent.GetPersistentEventCount(); break; case InvokeType.DynamicBoolean: summary += booleanEvent.GetPersistentEventCount(); break; case InvokeType.DynamicInteger: summary += integerEvent.GetPersistentEventCount(); break; case InvokeType.DynamicFloat: summary += floatEvent.GetPersistentEventCount(); break; case InvokeType.DynamicString: summary += stringEvent.GetPersistentEventCount(); break; } return(summary + " methods"); }