Person
Namespace: MyClassLib
A record class representing a person.
public record class Person : System.IEquatable`1[[MyClassLib.Person, MyClassLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → Person
Implements IEquatable<Person>
Attributes NullableContextAttribute, NullableAttribute
Properties
FirstName
The first name.
public string FirstName { get; init; }
Property Value
LastName
The last name.
public string LastName { get; init; }
Property Value
FullName
Gets the full name.
public string FullName { get; }
Property Value
Constructors
Person(String, String)
A record class representing a person.
public Person(string FirstName, string LastName)
Parameters
FirstName String
The first name.
LastName String
The last name.
Person(Person)
protected Person(Person original)
Parameters
original Person