A
ambidexterous
Consider i have a following property
public List<Cover> GreenCardsToBeTerminated
{
get
{
return greenCardsForTermination ??
(greenCardsForTermination =
DetermineGreenCardsToBeTerminated()
);
}
}
Now is there some way to know that this code was called from the "watch"
window if IDE ?
Similar to System.Diagnostics.Debugger.IsAttached or DesignMode ?
At the time i am debugging i would like to look what is returned by the
property, before that property is accessed by the real thread (callstack),
but i don't want to interfere with the execution path. In this case my
property does some inicialization and i don't want that to happen before the
time... so i would like to do something like if (IsCalledFromWatch) execute
this code and give me the results and then turn back things to the original
state
Do i have any options here?
public List<Cover> GreenCardsToBeTerminated
{
get
{
return greenCardsForTermination ??
(greenCardsForTermination =
DetermineGreenCardsToBeTerminated()
);
}
}
Now is there some way to know that this code was called from the "watch"
window if IDE ?
Similar to System.Diagnostics.Debugger.IsAttached or DesignMode ?
At the time i am debugging i would like to look what is returned by the
property, before that property is accessed by the real thread (callstack),
but i don't want to interfere with the execution path. In this case my
property does some inicialization and i don't want that to happen before the
time... so i would like to do something like if (IsCalledFromWatch) execute
this code and give me the results and then turn back things to the original
state
Do i have any options here?