StringUtility2 extension

Utility for Strings.

on

Properties

isNullOrWhiteSpace bool

Available on String?, provided by the StringUtility2 extension

Returns true if the string is null or empty.
no setter

Methods

parseInt() int?

Available on String?, provided by the StringUtility2 extension

Parses this value as int stripping the non digit characters, returns null if this fails.
parseIntWithUnits() int?

Available on String?, provided by the StringUtility2 extension

toDateTime() DateTime?

Available on String?, provided by the StringUtility2 extension

Format:
tryParseDateTime() DateTime?

Available on String?, provided by the StringUtility2 extension