C# Class Cruncher.Extensions.StringExtensions

Encapsulates a series of time saving extension methods to Strings.
Show file Open project: JimBobSquarePants/Cruncher

Public Methods

Method Description
Contains ( this expression, string value, System.StringComparison comparisonType ) : bool

Specifies whether a string contains another string dependent on the given comparison enumeration.

IsValidVirtualPathName ( this expression ) : bool

Checks the string to see whether the value is a valid virtual path name.

ToMd5Fingerprint ( this expression ) : string

Creates an MD5 fingerprint of the String.

Method Details

Contains() public static method

Specifies whether a string contains another string dependent on the given comparison enumeration.
public static Contains ( this expression, string value, System.StringComparison comparisonType ) : bool
expression this The String instance that this method extends.
value string The string value to search for.
comparisonType System.StringComparison The string comparer to determine comparison rules.
return bool

IsValidVirtualPathName() public static method

Checks the string to see whether the value is a valid virtual path name.
public static IsValidVirtualPathName ( this expression ) : bool
expression this The String instance that this method extends.
return bool

ToMd5Fingerprint() public static method

Creates an MD5 fingerprint of the String.
public static ToMd5Fingerprint ( this expression ) : string
expression this The String instance that this method extends.
return string