示例#1
0
        /// <summary>
        /// 转换为完整的代码
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            var cshtml = CSharpHtml.Views <HttpApi>();
            var source = cshtml.RenderText(this);

            return(new CSharpCode(source, TypeName, CodeArtifactType.Interface).ToString());
        }
示例#2
0
        /// <summary>
        /// 转换为完整的代码
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            var cshtml = CSharpHtml.Views <HttpModel>();
            var source = cshtml.RenderText(this);

            return(new CSharpCode(source, this.TypeName, this.Type).ToString());
        }