Пример #1
0
        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();
        }
Пример #2
0
 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;
 }
Пример #3
0
 public GenerateCommsClient(Type type, List <Type> googleTypes, string sourceDirectoryName) : base(
         sourceDirectoryName + "/" + ModuleFuncs.GetClassName(type) + "Client.cs")
 {
     this.type = type;
 }