[Solved] Write a generic method that accepts …

30 $

File Name: Write_a_generic_method_that_accepts_….zip
File Size: 367.38 KB

SKU: [Solved] Write a generic method that accepts … Category: Tag:

Or Upload Your Assignment Here:


Rate this product

Write a generic method that accepts three parameters of the same type and displays them in order. For numeric data, “in order” means in numerical order. For other classes, you can define “in order” appropriately. Test the method using at least four different data types, including at least one for which you implement a CompareTo() method.

Having hard time to solve this…

public class SortOrderDemo

{

public static T SortOrder<T> (T x, T y, T z) where T : IComparable<T>

//can’t think of a logic after this..

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Write a generic method that accepts …
30 $