Is this piece of code correct:
using (MyForm form = new MyForm { TopMost = TopMost})
{
}
I want to make the new Form TopMost, if the parent Form is TopMost, or should I write like this, I mean the new Form TopMost property is not self assigned to itself.
using (MyForm form = new MyForm { TopMost = this.TopMost})
{
}
They are the same, but the second is slightly more readable. Resharper will flag
this.as redundant code, so to each his own.