ObjectExtensionsIsDefaultT Method
Determines whether the source object is the default value of its type.
Namespace: DevCase.Extensions.ObjectExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static bool IsDefault<T>(
this T obj
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function IsDefault(Of T) (
obj As T
) As Boolean
Dim obj As T
Dim returnValue As Boolean
returnValue = obj.IsDefault()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static bool IsDefault(
T obj
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member IsDefault :
obj : 'T -> bool
No code example is currently available or this language may not be supported.
- obj T
-
The object to evaluate.
- T
-
The type of the objectto evaluate.
Boolean
Returns True if the source object is the default value of its type; otherwise, False.
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. 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).