Consider rewriting this:
if (this.ErrorOccurred != null)
{
this.ErrorOccurred(this, e);
}
Into:
var handler = ErrorOccurred;
if (handler != null)
{
handler(this, e);
}
Comments: ** Comment from web user: olegkap **
if (this.ErrorOccurred != null)
{
this.ErrorOccurred(this, e);
}
Into:
var handler = ErrorOccurred;
if (handler != null)
{
handler(this, e);
}
Comments: ** Comment from web user: olegkap **
I just applied you suggestion in 24900 commit but I still wondering whether I should use lock.
Closing it now.
Thanks,
Oleg