Index > ExpressionPowerTools.Serialization > ExpressionPowerTools.Serialization.Rules > RulesEngine
Implementation of IRulesConfiguration .
public class RulesEngine : IRulesConfiguration, IRulesEngineInheritance Object → RulesEngine
Implements IRulesConfiguration , IRulesEngine
The rules engine is an opt-in engine for execution. By default, properties and fields are allowed. Methods and constructors are not allowed. The rules engine operates on a few principles.
Allowing or denying a type will allow or deny all children of that type. For example,
although methods are denied by defeault, allowing a type will also allow access to methods.
More specific rules override general. You can allow a type and then deny a method, for example.
Rules defined on generic types are inherited by closed types by default. You can choose to specify
a rule for the closed type. For example, you might allow IQueryable<out T> as a generic
type but deny IQueryable<int>.
Use the chainable IRulesConfiguration interface to build the rules. By default they are "allow." You can use the explicitto reinforce this, or turn it into a.
| Ctor | Description |
|---|---|
| RulesEngine() | Initializes a new instance of the RulesEngine class. |
| Property | Type | Description |
|---|---|---|
AllowAnonymousTypes |
Boolean | Gets a value indicating whether anonymous types are allowed. |
LoadingDefaults |
Boolean | Gets or sets a value indicating whether defaults are being loaded. |
| Generated | Copyright | Version |
|---|---|---|
| 02/22/2021 21:59:57 | (c) Copyright 2020 Jeremy Likness. | 0.9.7-beta |