AyCode.Core/AyCode.Utils/Extensions
Loretta fbe142c6f3 Add detailed README.md files for all projects and folders
Added comprehensive README.md documentation to every project and subfolder in the solution. Each README describes the purpose, key files, structure, dependencies, and design patterns for its area. This improves codebase navigability and maintainability, and includes a maintenance note to keep docs in sync with future code changes.
2026-03-28 17:24:56 +01:00
..
DateTimeExtension.cs database improvements... 2023-11-23 22:38:13 +01:00
LockExtensions.cs database improvements... 2023-11-23 22:38:13 +01:00
README.md Add detailed README.md files for all projects and folders 2026-03-28 17:24:56 +01:00
StringExtensions.cs refactoring, improvements, fixes... 2024-05-03 15:37:41 +02:00

README.md

Extensions

String, DateTime, and lock utility extensions.

Key Files

  • StringExtensions.csIsNullOrEmpty(), IsNullOrWhiteSpace() (with [NotNullWhen]), FirstLetterToUpper(), MixCharacters() (interleaves two char sequences: ABC+DEF→ADBECF).
  • DateTimeExtension.csIsNullOrEmpty() for DateTime/DateTime?, IsEqualSqlDateTime2() for SQL Server datetime2 precision comparison.
  • LockExtensions.csusing pattern for locks: mutex.UseWaitOne(), semaphore.UseWait(), semaphore.UseWaitAsync(). Returns IDisposable wrappers that auto-release on dispose.

LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.