public void GenerateFile() { List <string> methods = new List <string>(); foreach (var method in type.GetMethods()) { methods.Add(GenerateMethod(method)); } O(outer.Replace("_NAME_", ModuleFuncs.GetClassName(type)). Replace("_FUNCTIONS_", methods.Aggregate("", (x, y) => x + "\n\n" + y))); Close(); }
public GenerateCommsClient(Type type, List <Type> googleTypes, string sourceDirectoryName) : base( sourceDirectoryName + "/ClientServer/" + ModuleFuncs.GetClassName(type) + "Client.cs") { Console.WriteLine($"Generating - {type.Name} CommsClient"); this.type = type; }
public GenerateCommsClient(Type type, List <Type> googleTypes, string sourceDirectoryName) : base( sourceDirectoryName + "/" + ModuleFuncs.GetClassName(type) + "Client.cs") { this.type = type; }