833 B
833 B
Extensions
String, DateTime, and lock utility extensions.
Key Files
StringExtensions.cs—IsNullOrEmpty(),IsNullOrWhiteSpace()(with[NotNullWhen]),FirstLetterToUpper(),MixCharacters()(interleaves two char sequences: ABC+DEF→ADBECF).DateTimeExtension.cs—IsNullOrEmpty()forDateTime/DateTime?,IsEqualSqlDateTime2()for SQL Server datetime2 precision comparison.LockExtensions.cs—usingpattern for locks:mutex.UseWaitOne(),semaphore.UseWait(),semaphore.UseWaitAsync(). ReturnsIDisposablewrappers 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.