using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WinFormsApp1 { public class SampleClass { public string Name { get; set; } public string Category { get; set; } public string SubCategory { get; set; } public override string ToString() { return Name + " " + Category + " " + SubCategory; } } }