コード例 #1
0
 private IEnumerable<IValueProvider> BuildValueProviders(IEnumerable<ParameterValue> values, IStringToValueTranslator translator, INConfigSettings settings)
 {
     foreach (var parameterValue in values)
     {
         IEnumerable<IFilterCondition> filterConditions = this.TranslateFilterConditions(parameterValue.FilterConditions, settings);
         yield return new TranslateFromStringValueProvider(translator, parameterValue.Value, filterConditions.ToArray());
     }
 }
コード例 #2
0
ファイル: ValueProvider.cs プロジェクト: Tetnacious/ByContext
 public ValueProvider(IStringToValueTranslator translator, string value)
 {
     _translator = translator;
     _value = value;
 }
コード例 #3
0
 public TranslateFromStringValueProvider(IStringToValueTranslator translator, string value, IFilterCondition[] filterConditions)
 {
     this.Translator = translator;
     this.Value = value;
     this.FilterConditions = filterConditions;
 }