本文整理汇总了C#中Generator.GetLoaderPlugins方法的典型用法代码示例。如果您正苦于以下问题:C# Generator.GetLoaderPlugins方法的具体用法?C# Generator.GetLoaderPlugins怎么用?C# Generator.GetLoaderPlugins使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Generator
的用法示例。
在下文中一共展示了Generator.GetLoaderPlugins方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowPlugins
public WhatToDoNext ShowPlugins()
{
Generator gen = new Generator(null);
Console.WriteLine("Registered Loader Plugins");
Console.WriteLine("--------------------------------");
WritePlugins(gen.GetLoaderPlugins());
Console.WriteLine();
Console.WriteLine("Registered Build Plugins");
Console.WriteLine("--------------------------------");
WritePlugins(gen.GetBuildPlugins());
Console.WriteLine();
Console.WriteLine("Registered CodeGenerator Plugins");
Console.WriteLine("--------------------------------");
WritePlugins(gen.GetPlugins());
return WhatToDoNext.GoAhead;
}
示例2: ToWiki
public WhatToDoNext ToWiki( string file )
{
if (string.IsNullOrEmpty(file)){
file = "PluginList.wiki";
}
Generator gen = new Generator(null);
using (StreamWriter writer = new StreamWriter(file)) {
writer.WriteLine(":Summary: Midgard Plugin List");
writer.WriteLine("(This file was generated by `*Odin.exe v{0}*')", this.GetType().Assembly.GetName().Version);
WritePlugins(writer, new List<IPlugin>(gen.GetLoaderPlugins()), "Loader Plugins");
WritePlugins(writer, new List<IPlugin>(gen.GetBuildPlugins()), "Build Generator Plugins");
WritePlugins(writer, new List<IPlugin>(gen.GetPlugins()), "Code Generator Plugins");
}
Console.WriteLine("Generated `{0}'", file);
return WhatToDoNext.GoAhead;
}