Skip to content

v8.2.0

Choose a tag to compare

@Tynab Tynab released this 12 May 09:28
· 108 commits to main since this release
00cf90b

YANLib 8.2.0 - Enhanced Collection Operations & Type Conversion

New Features

  • YANEnumerable Expansion

    • Added YANEnumerable.Generic for converting collections of objects to strongly-typed collections
    • Introduced YANEnumerable.Generic.Immutable for immutable collection support
    • Comprehensive support for arrays, lists, hash sets, dictionaries, and lookups
  • YANRandom Enhancements

    • Added YANRandom.Generic for generating random values from object collections
    • Introduced YANRandom.Generic.Collection for generating random collections from object collections
    • New methods for selecting random elements from existing collections
    • Support for both generic and non-generic collection inputs
  • 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

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