private TObject CloneAndChangeTimeAndLength(TObject obj, long time, long length) { var result = ObjectMethods.Clone(obj); ObjectMethods.SetTime(result, time); ObjectMethods.SetLength(result, length); return(result); }