protected void RegisterWarning(string code, IDictionary<string, string> parameters)
        {
            var message = new WorkflowMessage { Code = code, Parameters = new Dictionary<string, string>() };

            foreach (var param in parameters)
            {
                message.Parameters.Add(param.Key, param.Value);
            }

            CurrentResult.Warnings.Add(message);
        }
        public override bool Equals(object obj)
        {
            WorkflowMessage other = obj as WorkflowMessage;

            return(other != null && Code.Equals(other.Code));
        }