Class EvaluatorTypeRegistry
Implementation of IRegistersExpressionEvaluator which uses a in-memory dictionary to maintain registrations of evaluator types.
Inheritance
System.Object
EvaluatorTypeRegistry
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions
Assembly: ZptSharp.dll
Syntax
public class EvaluatorTypeRegistry : IRegistersExpressionEvaluator
Constructors
| Improve this Doc View SourceEvaluatorTypeRegistry(EnvironmentRegistry)
Initializes a new instance of EvaluatorTypeRegistry.
Declaration
public EvaluatorTypeRegistry(EnvironmentRegistry registry)
Parameters
Type | Name | Description |
---|---|---|
EnvironmentRegistry | registry | The environment registry. |
Methods
| Improve this Doc View SourceGetEvaluatorType(String)
Gets the evaluator type for the specified expressionType
.
Declaration
public Type GetEvaluatorType(string expressionType)
Parameters
Type | Name | Description |
---|---|---|
System.String | expressionType | Expression type. |
Returns
Type | Description |
---|---|
System.Type | The evaluator type. |
GetRegisteredExpressionTypes()
Gets a collection of all of the registered expression types.
Declaration
public IReadOnlyCollection<string> GetRegisteredExpressionTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<System.String> | The all registered types. |
IsRegistered(String)
Gets a value that indicates whether there is an evaluator type registered for
the specified expressionType
.
Declaration
public bool IsRegistered(string expressionType)
Parameters
Type | Name | Description |
---|---|---|
System.String | expressionType | Expression type. |
Returns
Type | Description |
---|---|
System.Boolean |
|