Exemple #1
0
 public IParser LoadParser(NFountainPlugin module)
 {
     Assembly asm = Assembly.Load(module.Assembly);
     IParser instance = asm.CreateInstance(module.Type) as IParser;
     return instance;
 }
Exemple #2
0
 public IWriter LoadWriter(NFountainPlugin module)
 {
     Assembly asm = Assembly.Load(module.Assembly);
     object instance = asm.CreateInstance(module.Type);
     IWriter asWriter = instance as IWriter;
     return asWriter;
 }
Exemple #3
0
 public override bool TryParse(string rawArg)
 {
     Plugin = _engine.LoadPlugin(rawArg, _type);
     return Plugin != null;
 }