} // DurationDescription // ---------------------------------------------------------------------- public virtual TimeSpan GetDuration(IDurationProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } return(provider.GetDuration(Start, End)); } // GetDuration
} // DurationDescription // ---------------------------------------------------------------------- public virtual TimeSpan GetDuration(IDurationProvider provider) { CommonMethods.checkNull(provider, "provider @ GetDuration"); return(provider.GetDuration(Start, End)); } // GetDuration