C# Class MsieJavaScriptEngine.Utilities.Utils

Mostrar archivo Open project: Taritsyn/MsieJavaScriptEngine

Public Methods

Method Description
GetFileTextContent ( string path, Encoding encoding = null ) : string

Gets a text content of the specified file

GetResourceAsString ( string resourceName, Assembly assembly ) : string

Gets a content of the embedded resource as string

GetResourceAsString ( string resourceName, Type type ) : string

Gets a content of the embedded resource as string

Private Methods

Method Description
InnerGetResourceAsString ( string resourceName, Assembly assembly ) : string
Is64BitProcess ( ) : bool

Method Details

GetFileTextContent() public static method

Gets a text content of the specified file
public static GetFileTextContent ( string path, Encoding encoding = null ) : string
path string File path
encoding System.Text.Encoding Content encoding
return string

GetResourceAsString() public static method

Gets a content of the embedded resource as string
public static GetResourceAsString ( string resourceName, Assembly assembly ) : string
resourceName string The case-sensitive resource name
assembly System.Reflection.Assembly The assembly, which contains the embedded resource
return string

GetResourceAsString() public static method

Gets a content of the embedded resource as string
public static GetResourceAsString ( string resourceName, Type type ) : string
resourceName string The case-sensitive resource name without the namespace of the specified type
type System.Type The type, that determines the assembly and whose namespace is used to scope /// the resource name
return string