Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 835 Bytes

File metadata and controls

12 lines (10 loc) · 835 Bytes

Extensions

The following extensions are available:

  • AsString: Returns the string if it is not null or empty, otherwise returns the default value.
  • AsInt: Parses a string as an integer, returning the default value if the string cannot be parsed.
  • AsDouble: Parses a string as a double, returning the default value if the string cannot be parsed.
  • AsFloat: Parses a string as a float, returning the default value if the string cannot be parsed.
  • AsLong: Parses a string as a long, returning the default value if the string cannot be parsed.
  • AsBool: Parses a string as a boolean, returning the default value if the string cannot be parsed.
  • AsArray: Splits a string by commas and returns the result as an array.
  • AsEnum: Parses a string as an enum, returning the default value if the string cannot be parsed.