ObjectEx Class |
Namespace: DW.SharpTools
public static class ObjectEx
The ObjectEx type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | IsNullOrEmpty |
Indicates whether the specified object is null or an System.String.Empty string.
|
![]() ![]() | IsNullOrWhiteSpace |
Indicates whether a specified object is null, empty, or consists only of white-space characters.
|
public void IsNullOrEmpty() { object element = "12"; ObjectEx.IsNullOrEmpty(element); } public void IsNullOrWhiteSpace() { object element = "13"; ObjectEx.IsNullOrWhiteSpace(element); }