Class FilterExtensions
- Namespace
- ATAS.Indicators
- Assembly
- ATAS.Indicators.dll
Provides extension methods for working with filters.
public static class FilterExtensions
- Inheritance
-
objectFilterExtensions
Methods
Apply<TFilter>(TFilter, TFilter?)
Applies the settings from the specified source filter to the target filter.
Added in ATAS 8.0.15.
public static TFilter Apply<TFilter>(this TFilter filter, TFilter? source) where TFilter : IFilterValue
Parameters
filterTFilterThe target filter to apply the settings to.
sourceTFilterThe source filter whose settings will be applied to the target filter.
Returns
- TFilter
The target filter after applying the settings from the source filter.
Type Parameters
TFilterThe type of the filter to apply the settings to.
SetEnabled(IFilter?, bool)
Sets the Enabled property of the filter to the specified value.
public static void SetEnabled(this IFilter? filter, bool enabled)