Change the feature flag name reference to const string
Closed this issue · 3 comments
zhiyuanliang-ms commented
Currently, our testcases are using Enum.GetName(typeof(Features), Features.TargetingTestFeature)
to reference a feature flag.
zhiyuanliang-ms commented
FeatureFlagDemo example project should also be updated.
juniwang commented
Could you explain what's wrong with name reference?
Also, I'm aslo wondering why not just use nameof
? For example, nameof(Features.TargetingTestFeature)
, which sounds pretty simple and straightforward.
zhiyuanliang-ms commented