Exemple #1
0
        /// <summary>
        /// 执行Message的Get()方法
        /// </summary>
        /// <param name="abstractElement">抽象元素</param>
        /// <returns></returns>
        public override string Visit(AbstractElement abstractElement)
        {
            Message m = abstractElement as Message;

            return(m.Get()[0].Message + " " + m.Get()[0].PublishTime.ToString() + "<br />");
        }
Exemple #2
0
 /// <summary>
 /// 执行抽象元素的方法
 /// </summary>
 /// <param name="abstractElement">抽象元素</param>
 /// <returns></returns>
 public abstract string Visit(AbstractElement abstractElement);
Exemple #3
0
        /// <summary>
        /// 执行Message的Insert()方法
        /// </summary>
        /// <param name="abstractElement">抽象元素</param>
        /// <returns></returns>
        public override string Visit(AbstractElement abstractElement)
        {
            Message m = abstractElement as Message;

            return(m.Insert().ToString() + "<br />");
        }