2024-11-17 13:25:39 +04:00
|
|
|
|
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;
|
|
|
|
|
}
|
2024-11-17 17:35:47 +04:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
2024-11-17 13:25:39 +04:00
|
|
|
|
}
|
|
|
|
|
}
|