Version 3.0.0.2

ConstantEvaluator<TContext, TResult> class

Namespace: Sirenix.OdinInspector.Editor.ValueResolver
Assembly: Sirenix.OdinInspector.Editor
public class ConstantEvaluator<TContext, TResult> : ProviderEvaluator<TContext, TResult>, IProviderEvaluator<TContext, TResult>, IProviderEvaluator<TResult>, IProviderEvaluator where TContext : ResolverContext
Inheritance
  • System.Object
  • ProviderEvaluator<TContext, TResult>
  • ConstantEvaluator<TContext, TResult>

Type Parameters

TContext

TResult

Constructors

ConstantEvaluator(TResult)
public ConstantEvaluator(TResult value)
Parameters
TResult value

ConstantEvaluator(Func<TContext, TResult>)
public ConstantEvaluator(Func<TContext, TResult> getValue)
Parameters
System.Func<TContext, TResult> getValue

Methods

TryEvaluate(TContext, String)
public override ValueProvider<TResult> TryEvaluate(TContext context, string reference)
Parameters
TContext context

System.String reference

Returns
ValueProvider<TResult>