#region COPYRIGHT
//
//     THIS IS GENERATED BY TEMPLATE
//     
//     AUTHOR  :     ROYE
//     DATE       :     2010
//
//     COPYRIGHT (C) 2010, TIANXIAHOTEL TECHNOLOGIES CO., LTD. ALL RIGHTS RESERVED.
//
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace System.Text.Template
{
    public class TypeOfExpression : Expression
    {
        private static Type GetTypeOfClassName(ClassName className)
        {
            return className.Type;
        }

        public override ValueExpression Evaluate(ITemplateContext context)
        {
            return Expression.Value(new Converter<ClassName, Type>(GetTypeOfClassName));
        }

        public override string ToString()
        {
            return "typeof";
        }
    }
}
