Table of Contents

Class Declaration

Namespace
NRules.RuleModel
Assembly
NRules.RuleModel.dll

Rule element declaration.

public sealed class Declaration : IEquatable<Declaration>
Inheritance
Declaration
Implements
Inherited Members
Extension Methods

Properties

Name

Symbol name.

public string Name { get; }

Property Value

string

Target

Rule element that this declaration is referencing.

public RuleElement Target { get; }

Property Value

RuleElement

Type

Symbol type.

public Type Type { get; }

Property Value

Type

Methods

Equals(Declaration)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Declaration other)

Parameters

other Declaration

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.