Skip to content

v8.2.1

Choose a tag to compare

@Tynab Tynab released this 17 May 14:22
· 103 commits to main since this release
6281678

YANLib 8.2.1 - TimeSpan Support & Parsing Enhancements

Enhanced Type Support

  • TimeSpan Parsing Integration

    • Added comprehensive TimeSpan support to Parse<T> extension methods
    • Implemented TimeSpan parsing with various format patterns (days, hours, minutes, seconds, milliseconds)
    • Full support for nullable TimeSpan (TimeSpan?) parsing with graceful null handling
  • Collection TimeSpan Support

    • Extended Parses<T> to handle collections of TimeSpan values
    • Added TimeSpan support to dictionary parsing with Parses<TKey, TValue>
    • Implemented TimeSpan support in lookup parsing with Parses<TKey, TElement>
    • Support for mixed TimeSpan formats within collections

Performance

  • Optimized TimeSpan parsing with efficient string format detection
  • Improved handling of TimeSpan components for maximum accuracy
  • Enhanced parsing performance for TimeSpan collections
  • Reduced memory allocations in TimeSpan conversion operations

Improvements

  • Consistent behavior between DateTime and TimeSpan parsing
  • Graceful handling of invalid TimeSpan formats
  • Extended XML documentation for all TimeSpan-related methods
  • Comprehensive test coverage for TimeSpan parsing scenarios
  • Improved type safety with TimeSpan-specific handling

See full documentation at: https://github.com/Tynab/YANLib/wiki