Метод | Описание | |
---|---|---|
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"
|
Метод | Описание | |
---|---|---|
RemoveRelativePath ( string path ) : string |
public static CleanFilePath ( string path ) : string | ||
path | string | /// The path to clean /// |
Результат | string |
public static CombinePaths ( string path1, string path2 ) : string | ||
path1 | string | /// The first path. /// |
path2 | string | /// The second path. /// |
Результат | string |
public static CopyFiles ( |
||
source | /// Source directory for the files /// | |
destination | /// Destination directory. /// | |
Результат | void |
public static CopyFiles ( |
||
source | /// Source for the. /// | |
destination | /// Destination for the. /// | |
overwrite | bool | /// true to overwrite, false to preserve. /// |
Результат | void |
public static DeleteFiles ( |
||
directory | /// Directory where files are located. /// | |
Результат | void |
public static DoubleOrZero ( string value ) : double | ||
value | string | /// The value. /// |
Результат | double |
public static EnumToAttribute ( |
||
value | /// The value. /// | |
Результат | string |
public static FromCamelCase ( string name ) : string | ||
name | string | /// The string to uncamelcase /// |
Результат | string |
public static GetEncodedStream ( string html, |
||
html | string | /// The HTML. /// |
encoding | /// The encoding. /// | |
Результат | Stream |
public static GetFirstExternalAssembly ( ) : |
||
Результат |
public static GetResourceStream ( string resourceName ) : Stream | ||
resourceName | string | |
Результат | Stream |
public static GetResourceStream ( string resourceName, |
||
resourceName | string | |
assembly | ||
Результат | Stream |
public static GetResourceStream ( string resourceName, string assembly ) : Stream | ||
resourceName | string | /// The resource name /// |
assembly | string | /// The assembly name /// |
Результат | Stream |
public static IntOrZero ( string value ) : int | ||
value | string | /// The value. /// |
Результат | int |
public static MethodPath ( |
||
mi | ||
Результат | string |
public static MethodPath ( |
||
type | /// The type to inspect. /// | |
memberName | string | /// Name of the member. /// |
Результат | string |
public static NumberToDoubleOrInt ( IConvertible value ) : IConvertible | ||
value | IConvertible | /// The number to convert /// |
Результат | IConvertible |
public static StreamToCharArray ( Stream stream ) : char[] | ||
stream | Stream | /// The stream. /// |
Результат | char[] |
public static StreamToString ( Stream stream ) : string | ||
stream | Stream | /// The stream. /// |
Результат | string |
public static TypePath ( |
||
type | /// The type to inspect /// | |
Результат | string |