Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

System.Diagnostics.DebuggerStepThrough() for properties

2 réponses
Avatar
Frédéric Wauquier
Hi,

Has somebody know a equivalent to System.Diagnostics.DebuggerStepThrough()
for a property.

Thanks.

WAUQUIER Frederic

2 réponses

Avatar
Clive Dixon
I think you just have to add it to the get/set accessors, not the property
itself, i.e.:

public int Property
{
[DebuggerStepThrough]
get
{
}
[DebuggerStepThrough]
set
{
}
}

"Frédéric Wauquier" wrote in message
news:
Hi,

Has somebody know a equivalent to System.Diagnostics.DebuggerStepThrough()
for a property.

Thanks.

WAUQUIER Frederic



Avatar
Frédéric Wauquier
Thanks for this powerfull response .

Fred

"Clive Dixon" <clived at digita dot com> wrote in message
news:
I think you just have to add it to the get/set accessors, not the property
itself, i.e.:

public int Property
{
[DebuggerStepThrough]
get
{
}
[DebuggerStepThrough]
set
{
}
}

"Frédéric Wauquier" wrote in message
news:
Hi,

Has somebody know a equivalent to
System.Diagnostics.DebuggerStepThrough() for a property.

Thanks.

WAUQUIER Frederic