C# Class Elmah.Assertions.JScriptAssertion

An assertion implementation that uses a JScript expression to determine the outcome.
Each instance of this type maintains a separate copy of the JScript engine so use it sparingly. For example, instead of creating several objects, each with different a expression, try and group all expressions that apply to particular context into a single compound JScript expression using the conditional-OR (||) operator.
Inheritance: IAssertion
Afficher le fichier Open project: elmah/Elmah

Méthodes publiques

Méthode Description
JScriptAssertion ( NameValueCollection settings ) : System
JScriptAssertion ( string expression ) : System
JScriptAssertion ( string expression, string assemblyNames, string imports ) : System
Test ( object context ) : bool

Private Methods

Méthode Description
AddDirectiveParameter ( string directive, string parameter, List list, string inits ) : List
ListOrElseArray ( List list, string array ) : string[]
ProcessDirectives ( string expression, string &assemblyNames, string &imports ) : void

Method Details

JScriptAssertion() public méthode

public JScriptAssertion ( NameValueCollection settings ) : System
settings System.Collections.Specialized.NameValueCollection
Résultat System

JScriptAssertion() public méthode

public JScriptAssertion ( string expression ) : System
expression string
Résultat System

JScriptAssertion() public méthode

public JScriptAssertion ( string expression, string assemblyNames, string imports ) : System
expression string
assemblyNames string
imports string
Résultat System

Test() public méthode

public Test ( object context ) : bool
context object
Résultat bool