Switcheroo.FeatureConfiguration.Get C# (CSharp) Method

Get() public method

Gets the feature toggle with the specified name.
If is null.
public Get ( string toggleName ) : IFeatureToggle
toggleName string Name of the feature toggle.
return IFeatureToggle
        public IFeatureToggle Get(string toggleName)
        {
            if (toggleName == null)
            {
                throw new ArgumentNullException("toggleName");
            }

            IFeatureToggle toggle;
            return features.TryGetValue(toggleName, out toggle) ? toggle : null;
        }