From 0d721762c9e4258a5530db41f7f049bb00694e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 11 Dec 2024 18:17:07 +0300 Subject: [PATCH] Fix the example for feature definition --- docs/en/framework/infrastructure/features.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/en/framework/infrastructure/features.md b/docs/en/framework/infrastructure/features.md index 06bd99a223..ef5d97bd91 100644 --- a/docs/en/framework/infrastructure/features.md +++ b/docs/en/framework/infrastructure/features.md @@ -161,8 +161,16 @@ namespace FeaturesDemo { var myGroup = context.AddGroup("MyApp"); - myGroup.AddFeature("MyApp.PdfReporting", defaultValue: "false"); - myGroup.AddFeature("MyApp.MaxProductCount", defaultValue: "10"); + myGroup.AddFeature( + "MyApp.PdfReporting", + defaultValue: "false" + ); + + myGroup.AddFeature( + "MyApp.MaxProductCount", + defaultValue: "10", + valueType: new FreeTextStringValueType(new NumericValueValidator()) + ); } } }