Esempio n. 1
0
 // Local helper that returns a string informing about available constructions
 static string AvailableConstructions() => $"Available: \n\n" +
 // Get all constructions, prepend spaces, sort, and make every on a single line
 $"{Constructions.GetAllConstructions().Select(construction => $"  {construction.Name}").Ordered().ToJoinedString("\n")}.\n";
 /// <summary>
 /// Initializes a new instance of the <see cref="ConstructedConfigurationObject"/> class
 /// using a predefined construction of a given type and input objects.
 /// </summary>
 /// <param name="type">The type of the predefined construction to be performed.</param>
 /// <param name="input">The input objects in the flattened order (see <see cref="Arguments.FlattenedList")/></param>
 public ConstructedConfigurationObject(PredefinedConstructionType type, params ConfigurationObject[] input)
     : this(Constructions.GetPredefinedconstruction(type), input)
 {
 }