Class GuidExtensions
Inherited Members
Namespace: Lett.Extensions
Assembly: Lett.Extensions.dll
Syntax
public static class GuidExtensions
Methods
| Improve this Doc View SourceGetNewGuidIfEmpty(Guid)
当 this
为 Guid.Empty
时,返回新的 Guid/>
Declaration
public static Guid GetNewGuidIfEmpty(this Guid this)
Parameters
Type | Name | Description |
---|---|---|
Guid | this |
Returns
Type | Description |
---|---|
Guid |
Examples
var guid = Guid.Empty;
guid = guid.GetNewGuidIfEmpty();