1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// ripex-lang-test: C# Product — record, enum, interface, method. namespace Ripex.Models { public enum Category { Electronics, Clothing } public interface IPricable { double PriceOf(); } public record Product(int Id, string Name, double Price, Category Cat) : IPricable { public double PriceOf() => Price; } }