1 2 3 4 5 6 7 8 9 10 11 12 13
using System; namespace DSALib.Models.Database.Dsa { public class Field { public Field(string name, int value = 0) { Name = name ?? throw new ArgumentNullException(nameof(name)); Value = value; } public string Name { get; set; } public int Value { get; set; } } }