Extension Methods from Gaston Verelst
Checks to see if a string represents a valid GUID. Source of the function:
Original code at https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94072&wa=wsignin1.0#tabs
Execute a SQL command directly on a DbConnection.
Needless to say that the other ExecuteXXX methods can be implemented as well.
Implementing the method at DbConnection level makes it available for SQLConnection, OleDbConnection, ...
Returns the left of a string, terminated by a certain character. If the character isn't found the whole string is returned.
Ex: string s = "ab-23";
s.LeftOf(s, '-') returns "ab"
Deletes the files in a certain directory that comply to the searchpattern. The searchpattern can contain * and ? (the normal wildcard characters). The function can also search in the subdirectories.
Return the remainder of a string s after a separator c.