// ****************************** 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)); }
static List <Tshirt> FabricDesc() { Tshirt[] shirts = PrepareSignature(); //instatiate the delegate BucketDelegate sortingDelegate = BucketSortHardCoded.FabricDesc; //call the delegate sortingDelegate(shirts); return(sortingDelegate(shirts)); }