/// <summary> /// Gets a boolean metric value. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <param name="metric">Requested metric.</param> /// <returns>InheritBool value.</returns> public override InheritBool GetMetricBool(PaletteState state, PaletteMetricBool metric) { IPaletteMetric inherit = GetInherit(state); if (inherit != null) { return(inherit.GetMetricBool(state, metric)); } else { return(Target.GetMetricBool(state, metric)); } }
/// <summary> /// Gets a boolean metric value. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <param name="metric">Requested metric.</param> /// <returns>InheritBool value.</returns> public InheritBool GetMetricBool(PaletteState state, PaletteMetricBool metric) { // Pass onto the inheritance return(_inherit.GetMetricBool(state, metric)); }
/// <summary> /// Gets a boolean metric value. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <param name="metric">Requested metric.</param> /// <returns>InheritBool value.</returns> public override InheritBool GetMetricBool(PaletteState state, PaletteMetricBool metric) { IPaletteMetric inherit = GetInherit(state); return(inherit?.GetMetricBool(state, metric) ?? Target.GetMetricBool(state, metric)); }
/// <summary> /// Gets a boolean metric value. /// </summary> /// <param name="state">Palette value should be applicable to this state.</param> /// <param name="metric">Requested metric.</param> /// <returns>InheritBool value.</returns> public InheritBool GetMetricBool(PaletteState state, PaletteMetricBool metric) => // Pass onto the inheritance _inherit.GetMetricBool(state, metric);