Files
Shrlalgo.RvKits/WPFluent.Gallery/Models/Person.cs

25 lines
689 B
C#
Raw Normal View History

2025-04-24 20:56:44 +08:00
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
namespace WPFluent.Gallery.Models;
public record Person
{
public string FirstName { get; init; }
public string LastName { get; init; }
public string Name => $"{FirstName} {LastName}";
public string Company { get; init; }
public Person(string firstName, string lastName, string company)
{
FirstName = firstName;
LastName = lastName;
Company = company;
}
}