/// <summary> /// Creates a rule-based converter. /// </summary> /// <param name="extensionPoints">The entry point for framework extensions.</param> /// <param name="rules">The rules to use.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="rules"/> is null.</exception> public RuleBasedConverter(IExtensionPoints extensionPoints, IConversionRule[] rules) { if (extensionPoints == null) throw new ArgumentNullException("extensionPoints"); if (rules == null) throw new ArgumentNullException("rules"); this.rules = new List<IConversionRule>(rules); this.conversions = new Dictionary<ConversionKey, ConversionInfo>(); this.extensionPoints = extensionPoints; }
public ConversionInfo(ConversionCost cost, IConversionRule rule) { Cost = cost; Rule = rule; }
public ConversionInfo(ConversionCost cost, IConversionRule rule) { Cost = cost; Rule = rule; }