Method | Description | |
---|---|---|
CleanFilePath ( string path ) : string |
Convert slashes to backslashes; make sure there's one (or zero, if not rooted) leading or trailing backslash; resolve parent and current folder references. Missing values are returned as just one backslash.
|
|
CombinePaths ( string path1, string path2 ) : string |
Combine two file paths, normalizing slashes and eliminating any relative path markers.
|
|
CopyFiles ( |
Copies files matching a pattern. Existing files will be overwritten.
|
|
CopyFiles ( |
Copies files matching a pattern.
|
|
DeleteFiles ( |
Deletes the files in a directory matching one or more patterns (nonrecursive)
|
|
DoubleOrZero ( string value ) : double |
Convert a string value to a double, or zero if non-numeric
|
|
EnumToAttribute ( |
Convert an enum to a lowercased attribute value
|
|
FromCamelCase ( string name ) : string |
Given a string, convert each uppercase letter to a "-" followed by the lower case letter. E.g. "fontSize" becomes "font-size".
|
|
GetEncodedStream ( string html, |
Return a stream, including BOM preamble, from a string
|
|
GetFirstExternalAssembly ( ) : |
Gets the first assembly that is not the assembly that this method belongs to
|
|
GetResourceStream ( string resourceName ) : Stream |
Gets a resource from the calling assembly
|
|
GetResourceStream ( string resourceName, |
Gets a resource name using the assembly and resource name
|
|
GetResourceStream ( string resourceName, string assembly ) : Stream |
Gets an embedded resource from an assembly by name
|
|
IntOrZero ( string value ) : int |
Convert a string value to an integer, or zero if non-numeric
|
|
MethodPath ( |
Get a fully qualified namespaced path to a member
|
|
MethodPath ( |
Get a fully qualified namespaced path to a member.
|
|
NumberToDoubleOrInt ( IConvertible value ) : IConvertible |
Return an int or double from any number.
|
|
StreamToCharArray ( Stream stream ) : char[] |
Conver a stream to a character array.
|
|
StreamToString ( Stream stream ) : string |
Convert a string to a stream using ASCII encoding.
|
|
TypePath ( |
Get a fully qualified namespaced path to a type, e.g. "CsQuery.Utility.Support.TypePath"
|
Method | Description | |
---|---|---|
RemoveRelativePath ( string path ) : string |
public static CleanFilePath ( string path ) : string | ||
path | string | /// The path to clean /// |
return | string |
public static CombinePaths ( string path1, string path2 ) : string | ||
path1 | string | /// The first path. /// |
path2 | string | /// The second path. /// |
return | string |
public static CopyFiles ( |
||
source | /// Source directory for the files /// | |
destination | /// Destination directory. /// | |
return | void |
public static CopyFiles ( |
||
source | /// Source for the. /// | |
destination | /// Destination for the. /// | |
overwrite | bool | /// true to overwrite, false to preserve. /// |
return | void |
public static DeleteFiles ( |
||
directory | /// Directory where files are located. /// | |
return | void |
public static DoubleOrZero ( string value ) : double | ||
value | string | /// The value. /// |
return | double |
public static EnumToAttribute ( |
||
value | /// The value. /// | |
return | string |
public static FromCamelCase ( string name ) : string | ||
name | string | /// The string to uncamelcase /// |
return | string |
public static GetEncodedStream ( string html, |
||
html | string | /// The HTML. /// |
encoding | /// The encoding. /// | |
return | Stream |
public static GetFirstExternalAssembly ( ) : |
||
return |
public static GetResourceStream ( string resourceName ) : Stream | ||
resourceName | string | |
return | Stream |
public static GetResourceStream ( string resourceName, |
||
resourceName | string | |
assembly | ||
return | Stream |
public static GetResourceStream ( string resourceName, string assembly ) : Stream | ||
resourceName | string | /// The resource name /// |
assembly | string | /// The assembly name /// |
return | Stream |
public static IntOrZero ( string value ) : int | ||
value | string | /// The value. /// |
return | int |
public static MethodPath ( |
||
mi | ||
return | string |
public static MethodPath ( |
||
type | /// The type to inspect. /// | |
memberName | string | /// Name of the member. /// |
return | string |
public static NumberToDoubleOrInt ( IConvertible value ) : IConvertible | ||
value | IConvertible | /// The number to convert /// |
return | IConvertible |
public static StreamToCharArray ( Stream stream ) : char[] | ||
stream | Stream | /// The stream. /// |
return | char[] |
public static StreamToString ( Stream stream ) : string | ||
stream | Stream | /// The stream. /// |
return | string |
public static TypePath ( |
||
type | /// The type to inspect /// | |
return | string |