public static TimeTable FromOther(ITimeTable source) { var target = new TimeTable(); source.CopyTo(target); return(target); }
public static T ConvertTo <T>(this ITimeTable source) where T : ITimeTable, new() { var target = new T(); source.CopyTo(target); return(target); }