Switcheroo.FeatureConfiguration.IsEnabled C# (CSharp) Method

IsEnabled() public method

Determines whether the feature toggle with the specified name is enabled.
If is null.
public IsEnabled ( string featureName ) : bool
featureName string Name of the feature toggle.
return bool
        public bool IsEnabled(string featureName)
        {
            IFeatureToggle toggle = Get(featureName);
            return toggle != null && toggle.IsEnabled();
        }