ConstraintBuilder.

ConstraintBuilder.ConstraintStack Class

Summary

ConstraintStack is a type-safe stack for holding Constraints
Namespace
TCLite.Constraints
Base Types
  • object
graph BT Type-->Base0["object"] Type["ConstraintBuilder.ConstraintStack"] class Type type-node

Syntax

public class ConstraintBuilder.ConstraintStack

Constructors

Name Summary
ConstraintStack(ConstraintBuilder) Initializes a new instance of the ConstraintStack class.

Properties

Name Value Summary
Empty bool
Gets a value indicating whether this ConstraintStack is empty.
Top IConstraint
Gets the topmost constraint without modifying the stack.

Methods

Name Value Summary
Pop() IConstraint
Pops this topmost constrait from the stack. As a side effect, the constraint's builder field is set to null.
Push(IConstraint) void
Pushes the specified constraint. As a side effect, the constraint's builder field is set to the ConstraintBuilder owning this stack.