Exemplo n.º 1
0
        public string GetConstructorParameterList()
        {
            var deps = Dependencies.Select(x => $"{x.Name} {x.LowerCamelCase}");
            var caps = Captures.Select(x => $"{x.InterfaceNameInfo.Name} {x.ParameterName}");

            return(deps.Concat(caps).Join(", "));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Generates a string where all the variables marked as Capture are printed in an organized fashion.
 /// </summary>
 /// <returns>The chained capture string.</returns>
 public string ToCaptureString()
 {
     return(string.Join(" | ", Captures.Select(c => c.Name + " = " + c.ToString())));
 }