RosettaCodeData/Task/Constrained-genericity/C-sharp/constrained-genericity-2.cs

7 lines
93 B
C#

using System.Collections.Generic;
class FoodBox<T> where T : IEatable
{
List<T> food;
}