Show / Hide Table of Contents

Class EvaluatorTypeRegistry

Implementation of IRegistersExpressionEvaluator which uses a in-memory dictionary to maintain registrations of evaluator types.

Inheritance
System.Object
EvaluatorTypeRegistry
Implements
IRegistersExpressionEvaluator
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 Source

EvaluatorTypeRegistry(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 Source

GetEvaluatorType(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

true, if an evaluator type is registered, false otherwise.

Implements

IRegistersExpressionEvaluator
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX