Click or drag to resize
ObjectEx Class
Provides an additional set of methods to work on elements.
Inheritance Hierarchy
SystemObject
  DW.SharpToolsObjectEx

Namespace: DW.SharpTools
Assembly: DW.SharpTools (in DW.SharpTools.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
C#
public static class ObjectEx

The ObjectEx type exposes the following members.

Methods
  NameDescription
Public methodStatic memberIsNullOrEmpty
Indicates whether the specified object is null or an System.String.Empty string.
Public methodStatic memberIsNullOrWhiteSpace
Indicates whether a specified object is null, empty, or consists only of white-space characters.
Top
Examples
C#
public void IsNullOrEmpty()
{
    object element = "12";
    ObjectEx.IsNullOrEmpty(element);
}

public void IsNullOrWhiteSpace()
{
    object element = "13";
    ObjectEx.IsNullOrWhiteSpace(element);
}
See Also