Overriding Culture Settings at Runtime

  • Updated

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();

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.