https://github.com/brenordv/csharp-coalesce-ext-poc
https://github.com/brenordv/csharp-coalesce-ext-poc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/brenordv/csharp-coalesce-ext-poc
- Owner: brenordv
- Created: 2021-08-06T19:26:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T19:30:31.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T08:13:15.641Z (5 months ago)
- Language: C#
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Coalesce Extension Poc
This project is just a PoC to demonstrate a convenient way to check if a variable is null and return a specified default value if it is.There's a special treatment for strings. If the variable is a string and it's null or white space, the informed default value will be returned instead of the current one.