public class Person
{
public string LastName { get; set; }
public string MiddleName { get; set; }
public string FirstName { get; set; }
}
.method public hidebysig specialname instance void
set_FirstName(string 'value') cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
// Code size 8 (0x8)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld string ConsoleApp1.Program/Person::'<FirstName>k__BackingField'
IL_0007: ret
} // end of method Person::set_FirstName
public record Person
{
public string LastName { get; init; }
public string MiddleName { get; init; }
public string FirstName { get; init; }
}
.method public hidebysig specialname instance void modreq([System.Runtime]System.Runtime.CompilerServices.IsExternalInit)
set_FirstName(string 'value') cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
// Code size 8 (0x8)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld string ConsoleApp1.Program/Person::'<FirstName>k__BackingField'
IL_0007: ret
} // end of method Person::set_FirstName
public record Person(
string FirstName,
string MiddleName,
string LastName);
.method public hidebysig specialname instance void modreq([System.Runtime]System.Runtime.CompilerServices.IsExternalInit)
set_LastName(string 'value') cil managed
{
.custom instance void [System.Runtime]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
// Code size 8 (0x8)
.maxstack 8
IL_0000: ldarg.0
IL_0001: ldarg.1
IL_0002: stfld string ConsoleApp1.Program/Person::'<LastName>k__BackingField'
IL_0007: ret
} // end of method Person::set_LastName