System.Diagnostics.DebuggerStepThrough() for properties

Le
Frédéric Wauquier
Hi,

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

Thanks.

WAUQUIER Frederic
Vidéos High-Tech et Jeu Vidéo
Téléchargements
Vos réponses
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
Clive Dixon
Le #12201911
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" news:
Hi,

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

Thanks.

WAUQUIER Frederic



Frédéric Wauquier
Le #12201821
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" news:
Hi,

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

Thanks.

WAUQUIER Frederic







Publicité
Poster une réponse
Anonyme