public List <string> GetUsings()
 {
     return(Usings
            .Distinct()
            .OrderBy(x => x)
            .ToList());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Generate the using statements
 /// </summary>
 private void GenerateUsings()
 {
     foreach (string name in Usings.Distinct().OrderBy(_ => _))
     {
         builder.AppendLine($"using {name};");
     }
     if (Usings.Any())
     {
         builder.AppendLine();
     }
 }