Exemple #1
0
        public override bool Equals(Object obj)
        {
            ChatRuntime rt = (Dialogic.ChatRuntime)obj;

            if (rt.firstChat != firstChat || rt.strictMode != strictMode ||
                rt.validatorsDisabled != validatorsDisabled)
            {
                return(false);
            }

            if (rt.chats.Count != chats.Count)
            {
                return(false);
            }

            foreach (var key in chats.Keys)
            {
                if (!(rt.ContainsKey(key) && rt.chats[key].Equals(chats[key])))
                {
                    return(false);
                }
            }

            return(true);
        }