static void Main(string[] args) { var taxOffice = new TaxOffice(); taxOffice.GetAllTaxPayers(); taxOffice.CollectTaxes(); InfoDomainApp(); Console.ReadLine(); }
static void DynamicData() { dynamic taxOffice = "taxOffice"; Console.WriteLine(taxOffice); taxOffice = new TaxOffice(); taxOffice.GetAllTaxPayers(); dynamic taxPayer = new System.Dynamic.ExpandoObject(); taxPayer.Id = Guid.NewGuid(); taxPayer.Name = "Tax Payer 1"; taxPayer.Address = "Address 1"; taxPayer.Age = 20; taxPayer.IncrementAge = (Action <int>)(x => taxPayer.Age += x); taxPayer.IncrementAge(6); Console.WriteLine($"{taxPayer.Name} - {taxPayer.Age} - {taxPayer.Address}"); Console.ReadLine(); }