Show / Hide Table of Contents

Class AppContextExtensions

Provides extensions for AppContext type.

Inheritance
object
AppContextExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public static class AppContextExtensions

Methods

View Source

IsFeatureSupported(string)

Checks whether the specified feature is enabled or disabled.

Declaration
public static bool IsFeatureSupported(string featureName)
Parameters
Type Name Description
string featureName

The name of the feature.

Returns
Type Description
bool

true if feature is enabled; otherwise, false.

Remarks

This method is intended to use in combination with FeatureSwitchDefinitionAttribute attribute.

See Also
FeatureSwitchDefinitionAttribute
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾