Exemple #1
0
        /// <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);
        }
Exemple #2
0
 protected bool Equals(DialogTreeIdentifier other)
 {
     return(Compatible(other));
 }
Exemple #3
0
 public DialogTreeBranchIdentifier(DialogTreeIdentifier dialogTree, int dialogTreeBranchId, DialogTree tree = null, DialogTreeBranch branch = null)
     : this(dialogTree.DialogTreeId, dialogTreeBranchId, tree, branch)
 {
 }