C# Class MsieJavaScriptEngine.Utilities.Utils

Afficher le fichier Open project: Taritsyn/MsieJavaScriptEngine

Méthodes publiques

Méthode 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

Méthode Description
InnerGetResourceAsString ( string resourceName, Assembly assembly ) : string
Is64BitProcess ( ) : bool

Method Details

GetFileTextContent() public static méthode

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
Résultat string

GetResourceAsString() public static méthode

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
Résultat string

GetResourceAsString() public static méthode

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
Résultat string