Click or drag to resize

ExtensionMethods Methods

The ExtensionMethods type exposes the following members.

Methods
  NameDescription
Public methodStatic memberkAddFlag(Int64, Int64)
Adds the flag.
Public methodStatic memberkAddFlagT(Enum, T)
Adds the flag.
Public methodStatic memberkAsReadableTime
Displays a readable time
Public methodStatic memberkBeginningOfDay
Returns 12:00am time for the date passed. Useful for date only search ranges start value
Public methodStatic memberkBeginningOfMonth
Returns the Start of the given month (the fist millisecond of the given date)
Public methodStatic memberkBeginningOfWeek
Get the date for the beginning of the week.
Public methodStatic memberkBetween
Returns true if the date is between or equal to one of the two values.
Public methodStatic memberkCaesar
Places a Caesar shift cipher on a string of a specified number of shifts.
Public methodStatic memberkCalculateAge
Calculates the age of something/someone.
Public methodStatic memberkCoinToss
Coins the toss.
Public methodStatic memberkCompareTo
Compares to.
Public methodStatic memberkContains(String, String, StringComparison)
Determines whether string [contains] [the specified value].
Public methodStatic memberkContains(String, String, CompareOptions, CultureInfo)
Determines whether string [contains] [the specified other].
Public methodStatic memberkCountDaysBetween
Counts the days between.
Public methodStatic memberkEndOfDay
Returns 12:59:59pm time for the date passed. Useful for date only search ranges end value
Public methodStatic memberkEndOfMonth
Returns the very end of the given month (the last millisecond of the last hour for the given date)
Public methodStatic memberkEqualsIgnoreCase
compare strings ignoring case.
Public methodStatic memberkEqualsTo
Check if strings are same.
Public methodStatic memberkFiscalInfo
Returns all information relative to Fiscal Quarters
Public methodStatic memberkForEachT(IEnumerableT, ActionT)
Iterates through IEnumerbale and runs action
Public methodStatic memberkForEachT(IListT, ActionT)
Iterates through IList and runs action
Public methodStatic memberkGetAllMessages
Gets all messages (including InnerExceptions!).
Public methodStatic memberkGetAsString(MemoryStream)
Returns the content of the stream as a string
Public methodStatic memberkGetAsString(MemoryStream, Encoding)
Returns the content of the stream as a string
Public methodStatic memberkGetValueOrDefaultTKey, TValue
Gets the value or default if key doesn't exist.
Public methodStatic memberkHasFlag(Int64, Int64)
Determines whether the specified current long (bitwise) has flag (& Logic).
Public methodStatic memberkHasFlagT(Enum, T)
Determines whether the specified value has flag.
Public methodStatic memberkIndexOf
checks for index of specified string - case insenstive.
Public methodStatic memberkIsEmpty
Determines whether this is an empty guid
Public methodStatic memberkIsFlag(Int64, Int64)
Determines whether the specified current long (bitwise) is the same as flag (& Logic).
Public methodStatic memberkIsFlagT(Enum, T)
Determines whether the specified value is flag.
Public methodStatic memberCode examplekIsInT
Determines whether the specified variable is contained within the "list".
Public methodStatic memberkIsNumeric
Determines whether the specified the value is numeric.
Public methodStatic memberkLastIndexOf
checks for Last index of specified string - case insenstive.
Public methodStatic memberkLoadFromJsonFileT
Public methodStatic memberkLoadFromJsonStringT
Loads JSON from string into class(type).
Public methodStatic memberkOccurences
Occurenceses the specified substring within a string (FAST).
Public methodStatic memberkOneOfT
Returns a random entry from an array of strings/numebers.
Public methodStatic memberkPadCenter
Pads the center of a string.
Public methodStatic memberkProperSentence
Convert Sentence to ProperCase
Public methodStatic memberkProperWord
Return Converted Word
Public methodStatic memberkQuarterInfo
Returns all information relative to a Business Quarter
Public methodStatic memberkRandomize
Randomizes the specified source. - used for test data, among other options
Public methodStatic memberkRemoveDiacritics
Removes the diacritics. based on http://stackoverflow.com/a/3769995/852829
Public methodStatic memberkRemoveDiacriticsAndRecompose
Removes the diacritics and recompose.
Public methodStatic memberkRemoveFlag(Int64, Int64)
Removes the flag.
Public methodStatic memberkRemoveFlagT(Enum, T)
Removes the flag.
Public methodStatic memberkRemoveHTML
Removes the HTML tags from a string.
Public methodStatic memberkSaveToCSVFileT(IEnumerableT, String)
Saves an Inumerable class/model to CSV file.
Public methodStatic memberkSaveToCSVFileT(IListT, String)
Saves an Inumerable class/model to CSV file.
Public methodStatic memberkSaveToJsonFileT
Saves a class in JSON format to a file
Public methodStatic memberkSemiAnnualInfo
Returns all information relative to a Business Quarter (or Fiscal year quarters) SemiAnnual Dates are 10/1 - 3/31 and 4/1 - 9/30 (Default) !Default is HARDCODED, fiscal year change will require method modification!
Public methodStatic memberkSplice
Splices the specified string.
Public methodStatic memberkStepChar
Returns a RangeIterator over the given range, where the stepping function is to step by the given number of characters.
Public methodStatic memberkStuff
Stuffs the specified string.
Public methodStatic memberkThrowIfNullT(T)
Throws an ArgumentNullException if the given data item is null. No parameter name is specified.
Public methodStatic memberkThrowIfNullT(T, String)
Throws an ArgumentNullException if the given data item is null.
Public methodStatic memberkToT
Creates an inclusive range between two values. The default comparer is used to compare values.
Public methodStatic memberkToByteWithDefault
To the byte.
Public methodStatic memberkToDecimalWithDefault
To the decimal.
Public methodStatic memberkToDoubleWithDefault
Double to Default
Public methodStatic memberkToInt16WithDefault
To the int16.
Public methodStatic memberkToInt32WithDefault
To the int32.
Public methodStatic memberkToInt64WithDefault
To the int64.
Public methodStatic memberkToSafeSQL
Removes/fixes single quotes from strings used in SQL Queries.
Public methodStatic memberkToSByteWithDefault
To an SByte with default on fail
Public methodStatic memberkToSingleWithDefault
Single or default
Public methodStatic memberkToUInt16WithDefault
To the u int16.
Public methodStatic memberkToUInt32WithDefault
To the u int32.
Public methodStatic memberkToUInt64WithDefault
To the u int64.
Public methodStatic memberkTruncate
Truncates a string to maxLength. Returns string if less than maxlength or null
Public methodStatic memberkWith
Replace string.Format() with .With(params[]).
Public methodStatic memberkWriteString(MemoryStream, String)
Writes the specified string into the memory stream
Public methodStatic memberkWriteString(MemoryStream, String, Encoding)
Writes the specified string into the memory stream
Top
See Also