[Solved] Write a generic method that accepts

$25

File Name: Write_a_generic_method_that_accepts_.zip
File Size: 339.12 KB

SKU: [Solved] Write a generic method that accepts … Category: Tag:
5/5 - (1 vote)

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>

//cant 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
$25