mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
27 lines
497 B
C#
27 lines
497 B
C#
using System.Xml.Serialization; // [XmlAttribute]
|
|
|
|
namespace Packt.Shared;
|
|
|
|
public class Person
|
|
{
|
|
public Person() { }
|
|
|
|
public Person(decimal initialSalary)
|
|
{
|
|
Salary = initialSalary;
|
|
}
|
|
|
|
[XmlAttribute("fname")]
|
|
public string? FirstName { get; set; }
|
|
|
|
[XmlAttribute("lname")]
|
|
public string? LastName { get; set; }
|
|
|
|
[XmlAttribute("dob")]
|
|
public DateTime DateOfBirth { get; set; }
|
|
|
|
public HashSet<Person>? Children { get; set; }
|
|
|
|
protected decimal Salary { get; set; }
|
|
}
|