Skip to main content



Overriding Culture Settings at Runtime

Prerequisites: A valid RuleSession
Namespaces: InRule.Runtime
Classes: RuleSession
See Also: InRule Culture Settings

The following using statements are required

using System.Threading;using System.Globalization;

// Create CultureInfo object, passing in desired culture
CultureInfo newCulture = new CultureInfo("fr-FR");

// Assign to current thread before applying rules
Thread.CurrentThread.CurrentCulture = newCulture;

// Apply rules
ruleSession.ApplyRules();