GuidExtensions
GUID manipulation and encoding extension methods.
API Reference
| Method | Return | Description |
|---|---|---|
| IsEmpty(this Guid) | bool | True if Guid.Empty |
| IsNotEmpty(this Guid) | bool | True if not Guid.Empty |
| IsNullOrEmpty(this Guid?) | bool | True if null or empty |
| HasValue(this Guid?) | bool | True if has non-empty value |
| NullIfEmpty(this Guid) | Guid? | Null if empty |
| OrEmpty(this Guid?) | Guid | Guid.Empty if null |
| OrNew(this Guid) | Guid | New Guid if empty |
| ToShortString(this Guid) | string | Base64 URL-safe encoding |
| FromShortString(string) | Guid | Parse from short string |
| TryFromShortString(string, out Guid) | bool | Try parse |
| ToStringNoDashes(this Guid) | string | N format without dashes |