Click or drag to resize

TreeWizardEquals Method (Object, Object, ITreeAdaptor)

Compare t1 and t2; return true if token types/text, structure match exactly. The trees are examined in their entirety so that (A B) does not match (A B C) nor (A (B C)).

Namespace:  Stimulsoft.Data.Expressions.Antlr.Runtime.Tree
Assembly:  Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntax
public static bool Equals(
	Object t1,
	Object t2,
	ITreeAdaptor adaptor
)

Parameters

t1
Type: SystemObject

[Missing <param name="t1"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.TreeWizard.Equals(System.Object,System.Object,Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.ITreeAdaptor)"]

t2
Type: SystemObject

[Missing <param name="t2"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.TreeWizard.Equals(System.Object,System.Object,Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.ITreeAdaptor)"]

adaptor
Type: Stimulsoft.Data.Expressions.Antlr.Runtime.TreeITreeAdaptor

[Missing <param name="adaptor"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.TreeWizard.Equals(System.Object,System.Object,Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.ITreeAdaptor)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.TreeWizard.Equals(System.Object,System.Object,Stimulsoft.Data.Expressions.Antlr.Runtime.Tree.ITreeAdaptor)"]

Remarks
TODO: allow them to pass in a comparator TODO: have a version that is nonstatic so it can use instance adaptor I cannot rely on the tree node's equals() implementation as I make no constraints at all on the node types nor interface etc...
See Also