Skip to content

SwiftCollections v1.0.3

Choose a tag to compare

@mrdav30 mrdav30 released this 17 Feb 16:44
· 187 commits to main since this release
6c5c41b

SwiftCollections v1.0.3 🚀

🔧 Improvements & Enhancements

  • Added LazyDisposable<T> Utility
    • A thread-safe, lazy-initialized disposable wrapper that ensures proper disposal of resources when no longer needed.
    • Supports IDisposable and prevents redundant disposal attempts.
  • Renamed Collection Extension Methods for Clarity & Compatibility
    • Any ➝ IsPopulated
    • IsNotNullOrEmpty ➝ IsPopulatedSafe
    • This prevents conflicts with LINQ’s built-in Any() method while maintaining intuitive functionality.

🛠️ Fixes & Optimizations

  • Thread-Safety Improvements in LazyDisposable<T>.
    • Ensures Value is only created once and disposed correctly when needed.
  • Improved Documentation & XML Comments across various collection utilities.
    • Clarifies usage and behavior of key methods.

📦 Package Updates

  • Updated FixedMathSharp to v1.0.4
    • Ensures compatibility with the latest precision math improvements.

🔹 Getting Started

  • Install via NuGet:
    dotnet add package SwiftCollections

For full details, check out the README. 🚀