/// <summary> /// Are both tree identifiers referencing the same <see cref="DialogTree"/>? /// </summary> /// <param name="tree">other <see cref="DialogTreeIdentifier"/> to compare</param> /// <returns>true if identifiers reference the same <see cref="DialogTree"/></returns> public bool Compatible(DialogTreeIdentifier tree) { if (ReferenceEquals(tree, null)) { return(false); } if (DialogTreeId != tree.DialogTreeId) { return(false); } return(true); }
protected bool Equals(DialogTreeIdentifier other) { return(Compatible(other)); }
public DialogTreeBranchIdentifier(DialogTreeIdentifier dialogTree, int dialogTreeBranchId, DialogTree tree = null, DialogTreeBranch branch = null) : this(dialogTree.DialogTreeId, dialogTreeBranchId, tree, branch) { }