/// <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()); }
/// <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()); }