Beispiel #1
0
        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));
        }
Beispiel #3
0
        void FormatNames()
        {
            Console.Clear();
            GUI.FormatNames();
            StringConcatinator sConca = (productNames) =>
            {
                Console.WriteLine(productNames);
            };

            myManager.FormatProductNames(sConca);
            Console.ReadKey();
        }
Beispiel #4
0
        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, ','));
        }
Beispiel #5
0
 public void FormatProductNames(StringConcatinator formattedStrings)
 {
     Console.WriteLine(formattedStrings(products));
 }