v8.2.1
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
- Added comprehensive TimeSpan support to
-
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
- Extended
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