Skip to the content.

< Back


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 ObjectPerson
Implements IEquatable<Person>
Attributes NullableContextAttribute, NullableAttribute

Properties

FirstName

The first name.

public string FirstName { get; init; }

Property Value

String

LastName

The last name.

public string LastName { get; init; }

Property Value

String

FullName

Gets the full name.

public string FullName { get; }

Property Value

String

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


< Back