Method | Description | |
---|---|---|
CamelCaseToDashed ( this camelCaseText, char separator = '-' ) : string | ||
Contains ( this text ) : bool | ||
ContainsAllAsWildcards ( this |
||
ContainsAnyAsWildcards ( this |
||
ContainsIgnoreCase ( this |
A case insensitive Contains() method.
|
|
CreateGuid ( this str ) : System.Guid |
Creates a GUID from an MD5 value of the string passed in.
|
|
CreatePublicKeyToken ( this |
Creates the public key token given a public key.. Note: Does this work?
|
|
DashedToCamelCase ( this dashedText, char separator = '-' ) : string | ||
DashedToPascalCase ( this dashedText, char separator = '-' ) : string | ||
EmptyAsNull ( this str ) : string | ||
EqualsEx ( this str1, string str2 ) : bool |
Checks to see if strings are equal, with empty strings being considered equal to null.
|
|
Error ( this formatString ) : void |
Errors the specified format string.
|
|
FormatWithMacros ( this value, GetMacroValueDelegate getMacroValue, object eachItem = null, GetMacroValueDelegate preprocessValue = null, GetMacroValueDelegate postprocessValue = null ) : string | ||
GetKeyTokenFromFullKey ( this fullKey ) : byte[] |
Gets the key token from full key. Does this work?
|
|
Gunzip ( this input ) : string |
Gunzips the specified input.
|
|
GunzipFromBase64 ( this input ) : string |
Gunzips from base64.
|
|
Gzip ( this input ) : byte[] |
Gzips the specified input.
|
|
GzipToBase64 ( this input ) : string |
Gzips to base64.
|
|
HasWildcardMatch ( this |
Runs IsWildcardMatch on a collection.
|
|
HasWildcards ( this input ) : bool |
Determines whether the specified input has wildcards.
|
|
HtmlDecode ( this s ) : string |
decodes an HTML encoded string
|
|
HtmlEncode ( this s ) : string |
Encodes a string into HTML encoding format, encoding control characters as well.
|
|
IfNullOrEmpty ( this text, string defaultText ) : string | ||
Is ( this str ) : bool | ||
IsBoolean ( this text ) : bool |
Determines whether the specified text is a boolean (true or false).
|
|
IsEmail ( this email ) : bool |
Determines whether the specified email is email.
|
|
IsFalse ( this text ) : bool |
Determines whether the specified text is equal to "false" (ignoring case).
|
|
IsMultiline ( this text ) : bool | ||
IsNegative ( this text ) : bool |
Determines whether the specified text is equal to some value indicated negative/off/false/no (ignoring case).
|
|
IsPositive ( this text ) : bool |
Determines whether the specified text equal to some value indicated on/true/enabled (ignoring case).
|
|
IsTrue ( this text ) : bool |
Determines whether the specified text equal to "true" (ignoring case).
|
|
IsWebUri ( this text ) : bool | ||
MD5Hash ( this input ) : string |
Calculates the MD5 hash of a string. Additionally all the letters in the hash are in uppercase.
|
|
MakeAttractiveFilename ( this input ) : string | ||
MakeSafeDirectoryId ( this input ) : string |
Creates a safe directory ID for MSI for a possibly non-safe one.
|
|
MakeSafeFileName ( this input ) : string | ||
Match ( this input, string rxExpression ) : |
Matches the specified input.
|
|
MatchIgnoreCase ( this input, string rxExpression ) : |
Matches a regular expression, ignoring case.
|
|
NewIsWildcardMatch ( this text, string wildcardMask, bool isMatchingLocation = false, string currentLocation = null ) : bool |
The new implementation of the wildcard matching function. Rules: * means matches anything except slash or backslash ? means match any one character ** means matches anything
|
|
OnlyContains ( this str, char characters ) : bool |
returns true when the string contains only the characters passed in.
|
|
OnlyContains ( this str, string characters ) : bool |
returns true when the string contains only the characters in the string passed in .
|
|
PositionOfFirstCharacterNotIn ( this str, char characters ) : int |
Gets the position of the first character that is not in the collection of characters passed in.
|
|
PositionOfFirstCharacterNotIn ( this str, string characters ) : int |
Gets the position of the first character that is not in the string passed in.
|
|
ProtectBinaryForMachine ( this |
encrypts the given collection of bytes with the machine key and salt (defaults to "CoAppToolkit")
|
|
ProtectBinaryForUser ( this |
encrypts the given collection of bytes with the user key and salt (defaults to "CoAppToolkit")
|
|
ProtectForMachine ( this text, string salt = "CoAppToolkit" ) : IEnumerable |
encrypts the given string with the machine key and salt (defaults to "CoAppToolkit")
|
|
ProtectForUser ( this text, string salt = "CoAppToolkit" ) : IEnumerable |
encrypts the given string with the machine key and salt (defaults to "CoAppToolkit")
|
|
Replace ( this s, string oldValue, string newValue, System.StringComparison comparisonType ) : string |
Case insensitive version of String.Replace().
|
|
StartsWithNumber ( this str ) : bool | ||
ToByteArray ( this text ) : byte[] |
Encodes the string as an array of UTF8 bytes.
|
|
ToHexString ( this |
Creates a hex representaion of a collection of bytes
|
|
ToInt32 ( this str ) : int |
coerces a string to an int32, defaults to zero.
|
|
ToInt32 ( this str, int defaultValue ) : int |
coerces a string to an int32, defaults to zero.
|
|
ToSecureString ( this password ) : |
||
ToUnsecureString ( this securePassword ) : string | ||
ToUri ( this stringUri ) : |
||
ToUtf8String ( this |
Creates a string from a collection of UTF8 bytes
|
|
UnprotectBinaryForMachine ( this |
decrypts the given collection of bytes with the machine key and salt (defaults to "CoAppToolkit") returns an empty collection of bytes on failure
|
|
UnprotectBinaryForUser ( this |
decrypts the given collection of bytes with the user key and salt (defaults to "CoAppToolkit") returns an empty collection of bytes on failure
|
|
UnprotectForMachine ( this |
decrypts the given collection of bytes with the machine key and salt (defaults to "CoAppToolkit") and returns a string from the UTF8 representation of the bytes. returns an empty string on failure
|
|
UnprotectForUser ( this |
decrypts the given collection of bytes with the user key and salt (defaults to "CoAppToolkit") and returns a string from the UTF8 representation of the bytes. returns an empty string on failure
|
|
UrlDecode ( this s ) : string |
decodes the URL encoded string
|
|
UrlEncode ( this s ) : string |
encodes the string as a url encoded string
|
|
UrlEncodeJustBackslashes ( this s ) : string | ||
WhenNullOrEmpty ( this original, string whenEmpty ) : string | ||
format ( this formatString ) : string |
Formats the specified format string.
|
Method | Description | |
---|---|---|
ProcessMacroInternal ( this value, GetMacroValueDelegate getMacroValue, object eachItem = null ) : string | ||
WildcardToRegex ( string wildcard, string noEscapePrefix = "^" ) : |
||
camelCaseToDashed ( this camelCaseText, char separator = '-' ) : IEnumerable |
||
dashedToCamelCase ( this dashedText, char separator = '-', bool pascalCase = false ) : IEnumerable |
public static CamelCaseToDashed ( this camelCaseText, char separator = '-' ) : string | ||
camelCaseText | this | |
separator | char | |
return | string |
public static ContainsAllAsWildcards ( this |
||
source | this |
|
return | bool |
public static ContainsAnyAsWildcards ( this |
||
source | this |
|
return | bool |
public static ContainsIgnoreCase ( this |
||
source | this |
The source. |
value | string | The value. |
return | bool |
public static CreateGuid ( this str ) : System.Guid | ||
str | this | The STR. |
return | System.Guid |
public static CreatePublicKeyToken ( this |
||
publicKey | this |
The public key. |
return | string |
public static DashedToCamelCase ( this dashedText, char separator = '-' ) : string | ||
dashedText | this | |
separator | char | |
return | string |
public static DashedToPascalCase ( this dashedText, char separator = '-' ) : string | ||
dashedText | this | |
separator | char | |
return | string |
public static EmptyAsNull ( this str ) : string | ||
str | this | |
return | string |
public static EqualsEx ( this str1, string str2 ) : bool | ||
str1 | this | First String to compare |
str2 | string | Second String to compare |
return | bool |
public static Error ( this formatString ) : void | ||
formatString | this | The format string. |
return | void |
public static FormatWithMacros ( this value, GetMacroValueDelegate getMacroValue, object eachItem = null, GetMacroValueDelegate preprocessValue = null, GetMacroValueDelegate postprocessValue = null ) : string | ||
value | this | |
getMacroValue | GetMacroValueDelegate | |
eachItem | object | |
preprocessValue | GetMacroValueDelegate | |
postprocessValue | GetMacroValueDelegate | |
return | string |
public static GetKeyTokenFromFullKey ( this fullKey ) : byte[] | ||
fullKey | this | The full key. |
return | byte[] |
public static Gunzip ( this input ) : string | ||
input | this | The input. |
return | string |
public static GunzipFromBase64 ( this input ) : string | ||
input | this | The input. |
return | string |
public static Gzip ( this input ) : byte[] | ||
input | this | The input. |
return | byte[] |
public static GzipToBase64 ( this input ) : string | ||
input | this | The input. |
return | string |
public static HasWildcardMatch ( this |
||
source | this |
The source. |
value | string | The value. |
ignorePrefix | string | The ignore prefix. |
return | bool |
public static HasWildcards ( this input ) : bool | ||
input | this | The input. |
return | bool |
public static HtmlDecode ( this s ) : string | ||
s | this | The string |
return | string |
public static HtmlEncode ( this s ) : string | ||
s | this | The s. |
return | string |
public static IfNullOrEmpty ( this text, string defaultText ) : string | ||
text | this | |
defaultText | string | |
return | string |
public static IsBoolean ( this text ) : bool | ||
text | this | The text. |
return | bool |
public static IsEmail ( this email ) : bool | ||
this | The email. | |
return | bool |
public static IsFalse ( this text ) : bool | ||
text | this | The text. |
return | bool |
public static IsMultiline ( this text ) : bool | ||
text | this | |
return | bool |
public static IsNegative ( this text ) : bool | ||
text | this | The text. |
return | bool |
public static IsPositive ( this text ) : bool | ||
text | this | The text. |
return | bool |
public static IsTrue ( this text ) : bool | ||
text | this | The text. |
return | bool |
public static MD5Hash ( this input ) : string | ||
input | this | a string to a calculate the hash for |
return | string |
public static MakeAttractiveFilename ( this input ) : string | ||
input | this | |
return | string |
public static MakeSafeDirectoryId ( this input ) : string | ||
input | this | The input. |
return | string |
public static MakeSafeFileName ( this input ) : string | ||
input | this | |
return | string |
public static Match ( this input, string rxExpression ) : |
||
input | this | The input. |
rxExpression | string | The rx expression. |
return |
public static MatchIgnoreCase ( this input, string rxExpression ) : |
||
input | this | The input. |
rxExpression | string | The rx expression. |
return |
public static NewIsWildcardMatch ( this text, string wildcardMask, bool isMatchingLocation = false, string currentLocation = null ) : bool | ||
text | this | |
wildcardMask | string | |
isMatchingLocation | bool | |
currentLocation | string | |
return | bool |
public static OnlyContains ( this str, char characters ) : bool | ||
str | this | The STR. |
characters | char | The characters. |
return | bool |
public static OnlyContains ( this str, string characters ) : bool | ||
str | this | The STR. |
characters | string | The characters. |
return | bool |
public static PositionOfFirstCharacterNotIn ( this str, char characters ) : int | ||
str | this | The STR. |
characters | char | The characters. |
return | int |
public static PositionOfFirstCharacterNotIn ( this str, string characters ) : int | ||
str | this | The STR. |
characters | string | The characters. |
return | int |
public static ProtectBinaryForMachine ( this |
||
binaryData | this |
The binary data. |
salt | string | The salt. |
return | IEnumerable |
public static ProtectBinaryForUser ( this |
||
binaryData | this |
The binary data. |
salt | string | The salt. |
return | IEnumerable |
public static ProtectForMachine ( this text, string salt = "CoAppToolkit" ) : IEnumerable |
||
text | this | The text. |
salt | string | The salt. |
return | IEnumerable |
public static ProtectForUser ( this text, string salt = "CoAppToolkit" ) : IEnumerable |
||
text | this | The text. |
salt | string | The salt. |
return | IEnumerable |
public static Replace ( this s, string oldValue, string newValue, System.StringComparison comparisonType ) : string | ||
s | this | String that contains patterns to replace |
oldValue | string | Pattern to find |
newValue | string | New pattern to replaces old |
comparisonType | System.StringComparison | String comparison type |
return | string |
public static StartsWithNumber ( this str ) : bool | ||
str | this | |
return | bool |
public static ToByteArray ( this text ) : byte[] | ||
text | this | The text. |
return | byte[] |
public static ToHexString ( this |
||
bytes | this |
The bytes. |
return | string |
public static ToInt32 ( this str ) : int | ||
str | this | The STR. |
return | int |
public static ToInt32 ( this str, int defaultValue ) : int | ||
str | this | The STR. |
defaultValue | int | The default value if the string isn't a valid int. |
return | int |
public static ToSecureString ( this password ) : |
||
password | this | |
return |
public static ToUnsecureString ( this securePassword ) : string | ||
securePassword | this | |
return | string |
public static ToUri ( this stringUri ) : |
||
stringUri | this | |
return |
public static ToUtf8String ( this |
||
bytes | this |
The bytes. |
return | string |
public static UnprotectBinaryForMachine ( this |
||
binaryData | this |
The binary data. |
salt | string | The salt. |
return | IEnumerable |
public static UnprotectBinaryForUser ( this |
||
binaryData | this |
The binary data. |
salt | string | The salt. |
return | IEnumerable |
public static UnprotectForMachine ( this |
||
binaryData | this |
The binary data. |
salt | string | The salt. |
return | string |
public static UnprotectForUser ( this |
||
binaryData | this |
The binary data. |
salt | string | The salt. |
return | string |
public static UrlDecode ( this s ) : string | ||
s | this | The s. |
return | string |
public static UrlEncode ( this s ) : string | ||
s | this | The s. |
return | string |
public static UrlEncodeJustBackslashes ( this s ) : string | ||
s | this | |
return | string |
public static WhenNullOrEmpty ( this original, string whenEmpty ) : string | ||
original | this | |
whenEmpty | string | |
return | string |
public static format ( this formatString ) : string | ||
formatString | this | The format string. |
return | string |