VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > Python基础教程 >
  • C#教程之利用反射生成接口列表(2)

private enum AccessorModifier { Public = 100, Protected = 95, Internal = 90, InternalProtected = 80, Private = 70, } } internal static class NopiExtension { internal static XWPFRun AppendText(this XWPFParagraph paragraph, string text, string color = "000000") { XWPFRun run = paragraph.CreateRun(); run.SetText(text); run.SetColor(color); return run; } internal static XWPFRun AppendSpaces(this XWPFParagraph paragraph, int spaceCount = 1) { return paragraph.AppendText(new string(' ', spaceCount)); } internal static XWPFRun AppendKeywordCSharp(this XWPFParagraph paragraph, string text) { return paragraph.AppendText(text, InterfaceExportHelper.CSharpKeywordColor); } internal static XWPFRun AppendClassCSharp(this XWPFParagraph paragraph, string text) { return paragraph.AppendText(text, InterfaceExportHelper.CSharpClassColor); } internal static XWPFRun AppendCarriageReturn(this XWPFParagraph paragraph) { var run = paragraph.CreateRun(); run.AddCarriageReturn(); return run; } }
复制代码

 

      用法

var assemblyPath = @"D:\Client\bin\Debug\Client.dll";
var outputDocPath = @"D:\Client.docx";

InterfaceExportHelper.IsShowParameterDefaultValue = false;
InterfaceExportHelper.SeparateInterfaceToDocument(assemblyPath, outputDocPath);


相关教程
关于我们--广告服务--免责声明--本站帮助-友情链接--版权声明--联系我们       黑ICP备07002182号