Пример #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());
        }