示例#1
0
        public static TimeTable FromOther(ITimeTable source)
        {
            var target = new TimeTable();

            source.CopyTo(target);

            return(target);
        }
示例#2
0
        public static T ConvertTo <T>(this ITimeTable source)
            where T : ITimeTable, new()
        {
            var target = new T();

            source.CopyTo(target);

            return(target);
        }