v8.2.0
YANLib 8.2.0 - Enhanced Collection Operations & Type Conversion
New Features
-
YANEnumerable Expansion
- Added
YANEnumerable.Genericfor converting collections of objects to strongly-typed collections - Introduced
YANEnumerable.Generic.Immutablefor immutable collection support - Comprehensive support for arrays, lists, hash sets, dictionaries, and lookups
- Added
-
YANRandom Enhancements
- Added
YANRandom.Genericfor generating random values from object collections - Introduced
YANRandom.Generic.Collectionfor generating random collections from object collections - New methods for selecting random elements from existing collections
- Support for both generic and non-generic collection inputs
- Added
-
YANUnmanaged Collection Parsing
- Added dictionary parsing with
Parses<TKey, TValue>for IDictionary<object, object?> - Introduced lookup parsing with
Parses<TKey, TElement>for ILookup<object?, object?> - Enhanced type conversion for complex collection structures
- Added dictionary parsing with
Performance
- Optimized collection conversion with specialized implementations for different collection types
- Improved random value generation with efficient selection algorithms
- Enhanced parsing performance for dictionaries and lookups
- Parallel processing for large collections to maximize throughput
- Reduced memory allocations through careful implementation
Improvements
- Fixed internal
AsyncEnumerableEmpty<T>method in YANTask.Collection - Extended XML documentation for all new methods
- Consistent behavior across all collection operations
- Improved type safety with generic constraints
- Graceful handling of null collections and edge cases
See full documentation at: https://github.com/Tynab/YANLib/wiki