private void WriteCustomActions(StreamWriter writer, string name, List<object> customActions)
{
writer.Write(name + " =" + Environment.NewLine + "{" + Environment.NewLine);
for (int i = 0; i < CustomActions.Count; i++)
writer.Write("\t" + (customActions[i] as dynamic).name + " : " + (customActions[i] as dynamic).func + Environment.NewLine);
writer.Write("}" + Environment.NewLine);
}