예제 #1
0
        // ****************************** Delegated methods on Size ****************************
        public static List <Tshirt> SizeAsc()
        {
            Tshirt[] shirts = PrepareSignature();

            //instatiate the delegate
            BucketDelegate sortingDelegate = BucketSortHardCoded.SizeAsc;

            //call the delegate
            return(sortingDelegate(shirts));
        }
예제 #2
0
        static List <Tshirt> FabricDesc()
        {
            Tshirt[] shirts = PrepareSignature();
            //instatiate the delegate
            BucketDelegate sortingDelegate = BucketSortHardCoded.FabricDesc;

            //call the delegate
            sortingDelegate(shirts);

            return(sortingDelegate(shirts));
        }