更新整理
This commit is contained in:
24
WPFluent.Gallery/Models/Person.cs
Normal file
24
WPFluent.Gallery/Models/Person.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user