GuidExtensionsAssignValueIfNull Method |
Assigns an empty GUID if it is null.
Namespace:
Xcalibur.Extensions
Assembly:
Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax public static Guid AssignValueIfNull(
this Nullable<Guid> guid
)
<ExtensionAttribute>
Public Shared Function AssignValueIfNull (
guid As Nullable(Of Guid)
) As Guid
public:
[ExtensionAttribute]
static Guid AssignValueIfNull(
Nullable<Guid> guid
)
[<ExtensionAttribute>]
static member AssignValueIfNull :
guid : Nullable<Guid> -> Guid
Parameters
- guid
- Type: SystemNullableGuid
The source nullable GUID.
Return Value
Type:
Guidtrue if [is GUID valid] [the specified GUID]; otherwise,
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NullableGuid. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also