Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.12 KB

⚠️ We've moved!': The source code for this package has been moved to be part of the main GrowthBook project. The new repository can be found here.

growthbook-c-sharp

Powerful Feature flagging and A/B testing for C# apps using GrowthBook

Usage

This library is based on the GrowthBook SDK specs and should be compatible with the usage examples in the GrowthBook docs.

Because feature definitions are typically loaded from API calls or cache, Json.NET objects are used to represent arbitrary document types such as Attributes, Conditions, and Feature values.

To make it easier to deal with Feature values, generic getter functions are provided for the following:

  • Experiment:
    • GetVariations()
  • ExperimentResult:
    • GetValue()
  • Feature:
    • GetDefaultValue()
  • FeatureResult:
    • GetValue()
  • Feature Rule:
    • GetVariations()
  • GrowthBook:
    • GetFeatureValue(string key, T fallback)