public void FormatProductNames(StringConcatinator format) { string names = ""; foreach (var name in ProductList) { names += name.Name.ToString() + @"//"; } format(names); }
internal void Start() { StringConcatinator stringConcatinator = StringConcatinatorMethod; NumberOperator numberOperator = NumberOperatorMethod; Console.WriteLine(stringConcatinator(stringCollection)); bool selector = true; Console.WriteLine(numberOperator(floatCollection, selector)); }
void FormatNames() { Console.Clear(); GUI.FormatNames(); StringConcatinator sConca = (productNames) => { Console.WriteLine(productNames); }; myManager.FormatProductNames(sConca); Console.ReadKey(); }
static void Main(string[] args) { //StringClass stringclass = new StringClass(); StringConcatinator del1 = new StringConcatinator(concat); string[] stringArray = new string[3] { "Niclas", "Daniel", "John" }; // var runtime = new Runtime(); // runtime.Start(); Console.WriteLine(del1(stringArray, ',')); }
public void FormatProductNames(StringConcatinator formattedStrings) { Console.WriteLine(formattedStrings(products)); }