Method With
- Namespace
- RuleWright.Core
- Assembly
- RuleWright.Core.dll
With(string, object?, bool)
Starts a named-facts collection with its first fact.
public static RuleFacts With(string name, object? fact, bool ignoreCase = false)
Parameters
namestringThe name rules address this fact by (the first path segment).
factobjectThe fact instance; may be null (rules then see it as absent).
ignoreCaseboolWhether fact names (this level only) match case-insensitively. Facts inside follow the ordinary resolution rules: POCO members are case-insensitive, dictionary keys use their own comparer.
Returns
Exceptions
- ArgumentException
nameis null or empty.