Exemple #1
0
 public override object execute(object obj, int index, int length)
 {
     if (obj is Function)
     {
         Function f       = (Function)obj;
         string   path    = MCL.Address.BaseFunctionDirectory + f.Name + "(" + f.Inputs.Length + ")" + MCL.Address.FunctionExtension;
         string   content = f.Access.Status.ToString().ToLower() + " function " + f.Name + "(" + MiMFa_CollectionService.GetAllItems(f.Inputs, ",") + ")" + Environment.NewLine + f.Commands + ";";
         MiMFa_IOService.StringToFullFile(path, content);
     }
     else
     {
         string path = MiMFa_Path.CreateValidPathName(MCL.Address.BaseOtherDirectory, "out", MCL.Address.BinaryExtension, false);
         MiMFa_IOService.SaveSerializeFile(path, obj);
     }
     return(obj);
 }