public static string GapTime(Gap value) { if(value == null) { return String.Empty; } TimeGap time = value as TimeGap; if(time != null) { return GapTime(time); } return GapTime((LapGap)value); }