Table of Contents

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

name string

The name rules address this fact by (the first path segment).

fact object

The fact instance; may be null (rules then see it as absent).

ignoreCase bool

Whether 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

RuleFacts

Exceptions

ArgumentException

name is null or empty.