using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
public static void Main()
List<int> ListGeneric = new List<int> {5,9,1,4};
ArrayList ListNonGeneric = new ArrayList {5,9,1,4};
Stopwatch s = Stopwatch.StartNew();
Console.WriteLine($"Generic Sort: {ListGeneric} \n Time taken: {s.Elapsed.TotalMilliseconds}ms");
Stopwatch s2 = Stopwatch.StartNew();
Console.WriteLine($"Non-Generic Sort: {ListNonGeneric} \n Time taken: {s.Elapsed.TotalMilliseconds}ms");
public int Id { get; set; }
public string Name { get; set; }
public string Category { get; set; }
public decimal Price { get; set; }
public int StockQuantity { get; set; }