Click or drag to resize

PatternElement Class

Rule element that represents a pattern that matches facts.
Inheritance Hierarchy

Namespace:  NRules.RuleModel
Assembly:  NRules.RuleModel (in NRules.RuleModel.dll) Version: 0.8.4
Syntax
C#
public class PatternElement : RuleLeftElement

The PatternElement type exposes the following members.

Properties
  NameDescription
Public propertyConditions
List of conditions the pattern checks.
Public propertyDeclaration
Declaration that references the pattern.
Public propertyDeclarations
Declarations visible from this rule element.
(Inherited from RuleElement.)
Public propertySource
Optional pattern source element.
Public propertyValueType
Type of the values that the pattern matches.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodMatch
Matches a rule element to an appropriate action based on the concrete type of the element. Type-safe implementation of discriminated union for rule elements.
(Defined by RuleElementExtensions.)
Top
See Also