Extension Methods from Jonnidip
-
ToSecureString
Converts a string into a "SecureString"
-
DateDiff
DateDiff in SQL style. The following DateParts are implemented: - "year" (abbr. "yy", "yyyy") - "quarter" (abbr. "qq", "q") - "month" (abbr. "mm", "m") - "day" (abbr. "dd", "d") - "week" (abbr. "wk", "ww") - "hour" (abbr. "hh") - "minute" (abbr. "mi", "n") - "second" (abbr. "ss", "s") - "millisecond" (abbr. "ms")
-
SelectDistinct
"SELECT DISTINCT" over a DataTable. Handles multiple columns selection.
-
ReadToEnd
Returns a string with the content of the input stream
-
ToHashTable
Converts a DataRow into a Hashtable.
-
Elapsed
Get the elapsed time since the input DateTime
-
ToNameValueCollection
Splits a string into a NameValueCollection, where each "namevalue" is separated by the "OuterSeparator". The parameter "NameValueSeparator" sets the split between Name and Value.
-
ToMemoryStream
Returns a MemoryStream from a Byte array
-
ColumnExists
Returns true if the column exists in the DataReader, else returns false
-
GetMostInner
Gets the most inner (deepest) exception of a given Exception object
-
ElapsedSeconds
Gest the elapsed seconds since the input DateTime