private string _nom;
public string Nom
{
get { return _nom; }
set { _nom = value; }
}
public string Nom { get; set; }
public class GeekOne
public class GeekTwo
ildasm monassembly.exe /out:source.il
.class public auto ansi beforefieldinit ConsoleApplication1.GeekOne
extends [mscorlib]System.Object
.field private string '<>k__AutomaticallyGeneratedPropertyField0'
.custom instance void [mscorlib]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 )
.method public hidebysig specialname instance string
get_Nom() cil managed
// Code size 11 (0xb)
.maxstack 1
.locals init (string V_0)
IL_0000: ldarg.0
IL_0001: ldfld string ConsoleApplication1.GeekOne::'<>k__AutomaticallyGeneratedPropertyField0'
IL_0006: stloc.0
IL_0007: br.s IL_0009
IL_0009: ldloc.0
IL_000a: ret
.method public hidebysig specialname instance void
set_Nom(string 'value') cil managed
// Code size 8 (0x8)
.maxstack 8
IL_0001: ldarg.1
IL_0002: stfld string ConsoleApplication1.GeekOne::'<>k__AutomaticallyGeneratedPropertyField0'
IL_0007: ret
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
// Code size 7 (0x7)
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
.property instance string Nom()
.get instance string ConsoleApplication1.GeekOne::get_Nom()
.set instance void ConsoleApplication1.GeekOne::set_Nom(string)
.class public auto ansi beforefieldinit ConsoleApplication1.GeekTwo
.field private string _nom
// Code size 12 (0xc)
.locals init ([0] string CS$1$0000)
IL_0001: ldarg.0
IL_0002: ldfld string ConsoleApplication1.GeekTwo::_nom
IL_0007: stloc.0
IL_0008: br.s IL_000a
IL_000a: ldloc.0
IL_000b: ret
// Code size 9 (0x9)
IL_0002: ldarg.1
IL_0003: stfld string ConsoleApplication1.GeekTwo::_nom
IL_0008: ret
.get instance string ConsoleApplication1.GeekTwo::get_Nom()
.set instance void ConsoleApplication1.GeekTwo::set_Nom(string)
[CompilerGenerated]
private string <>k__AutomaticallyGeneratedPropertyField0;
get
return this.<>k__AutomaticallyGeneratedPropertyField0;
set
this.<>k__AutomaticallyGeneratedPropertyField0 = value;