C# Class Cruncher.Extensions.StringExtensions

Encapsulates a series of time saving extension methods to Strings.
Afficher le fichier Open project: JimBobSquarePants/Cruncher

Méthodes publiques

Méthode 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 méthode

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.
Résultat bool

IsValidVirtualPathName() public static méthode

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.
Résultat bool

ToMd5Fingerprint() public static méthode

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