public string Name { get; set; }
public decimal Cost { get; set; }
public int Quantity { get; set; }
public static void Main()
foreach (var prop in type.GetProperties())
Console.WriteLine($"PropName: [{prop.Name}] TypeName: [{prop.PropertyType.Name}] IsDeciaml: [{prop.PropertyType == typeof(decimal)}]\n");