34 lines
798 B
C#
34 lines
798 B
C#
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;
|
|
}
|
|
|
|
public SampleClass() {
|
|
Name = string.Empty;
|
|
Category = string.Empty;
|
|
SubCategory = string.Empty;
|
|
}
|
|
|
|
public SampleClass(string name, string category, string subCategory)
|
|
{
|
|
Name = name;
|
|
Category = category;
|
|
SubCategory = subCategory;
|
|
}
|
|
}
|
|
}
|