C# Class SharpTuneCore.ResourceUtil

Mostra file Open project: Merp/SharpTune Class Usage Examples

Public Methods

Method Description
GetEmbeddedResourceStream ( string resourceName ) : Stream

Takes the full name of a resource and loads it in to a stream.

ProgramFilesx86 ( ) : string

Get the list of all emdedded resources in the assembly.

directorySearch ( string directory, string terms ) : List

Returns a List of file paths Whos names contain the search term

directorySearchRecursive ( string directory, string terms ) : List

Returns a List of file paths Whos names contain the search term

directorySearchRecursiveDir ( string directory, string terms ) : List
termSearch ( string content, string args ) : bool

Searches a string for all terms in the array

Method Details

GetEmbeddedResourceStream() public static method

Takes the full name of a resource and loads it in to a stream.
public static GetEmbeddedResourceStream ( string resourceName ) : Stream
resourceName string Assuming an embedded resource is a file /// called info.png and is located in a folder called Resources, it /// will be compiled in to the assembly with this fully qualified /// name: Full.Assembly.Name.Resources.info.png. That is the string /// that you should pass to this method.
return Stream

ProgramFilesx86() public static method

Get the list of all emdedded resources in the assembly.
public static ProgramFilesx86 ( ) : string
return string

directorySearch() public static method

Returns a List of file paths Whos names contain the search term
public static directorySearch ( string directory, string terms ) : List
directory string
terms string
return List

directorySearchRecursive() public static method

Returns a List of file paths Whos names contain the search term
public static directorySearchRecursive ( string directory, string terms ) : List
directory string
terms string
return List

directorySearchRecursiveDir() public static method

public static directorySearchRecursiveDir ( string directory, string terms ) : List
directory string
terms string
return List

termSearch() public static method

Searches a string for all terms in the array
public static termSearch ( string content, string args ) : bool
content string
args string
return bool