Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You don't need to have the type in the line to make it more readable, its a matter of personal preference. I do like the var variation:</p> <pre><code>var currentTab = tabCaseNotes.TabPages[e.Index]; var itemRect = tabCaseNotes.GetTabRect(e.Index); var fillBrush = new SolidBrush(Color.Linen); var textBrush = new SolidBrush(Color.Black); var sf = new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center }; </code></pre> <p><strong>Update:</strong> I will add a controversial view on it. Unless I am reading code from a book, I don't usually care what's the specific type for understanding some lines of code I am reading. Consider the .GetTableRectangle(e.Index), for which you are not showing the code that operates on it:</p> <pre><code>var itemRect = tabCaseNotes.GetTableRectangle(e.Index); //do some operations on itemRect </code></pre> <p>While reading that specific code I will get more to understand it from the operations on itemRect than from its type. It can be IRectangle, Rectangle, CustomRectangle, and still won't say much on what the code is doing with it. Instead I care more for the itemRect.Height, itemRect.Width or itemRect.GetArea() along with the logic involved.</p> <p><strong>Update 2:</strong> As others have pointed out you can turn it off. Make sure to keep the team with the same practices, or you will probably end up with making changes one way or the other each time a different person touches the code. See: <a href="http://www.jetbrains.com/resharper/features/codeTemplate.html" rel="noreferrer">http://www.jetbrains.com/resharper/features/codeTemplate.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload