String literals assigned to the Name property of a control are treated by ReSharper as field names. For instance, in the example that you have sent the contents of "treeModulesReports" is highlighted in the same color as the field treeModulesReports. This is done intentionally, because if the contents of the Name property is different from the field name VS form designer does not work properly. To keep VS form designer happy ReSharper treats "treeModulesReports" as reference to treeModulesReports field. For example, if you rename treeModulesReports to myTreeModulesReports the contents of the string literal will be changed to "myTreeModulesReports" as well, and you will be able to continue using VS form designer. -- Andrey Simanovsky Software Developer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
String literals assigned to the Name property of a control are treated by ReSharper as field names. For instance, in the example that you have sent the contents of "treeModulesReports" is highlighted in the same color as the field treeModulesReports. This is done intentionally, because if the contents of the Name property is different from the field name VS form designer does not work properly. To keep VS form designer happy ReSharper treats "treeModulesReports" as reference to treeModulesReports field. For example, if you rename treeModulesReports to myTreeModulesReports the contents of the string literal will be changed to "myTreeModulesReports" as well, and you will be able to continue using VS form designer.
In other words: it's a feature, and a clever one too :)
-- Dmitry Lomov Software Developer JetBrains Inc. http://www.jetbrains.com "Develop With Pleasure!"
"Dmitry Lomov (JetBrains)" <dmitry.lomov@jetbrains.com> wrote in message news:107327632422878457963498@news.intellij.net... > >> String literals assigned to the Name property of a control are treated >> by >> ReSharper as field names. For instance, in the example that you have >> sent >> the contents of "treeModulesReports" is highlighted in the same color >> as the >> field treeModulesReports. >> This is done intentionally, because if the contents of the Name >> property is >> different from the field name VS form designer does not work properly. >> To >> keep VS form designer happy ReSharper treats "treeModulesReports" as >> reference to treeModulesReports field. For example, if you rename >> treeModulesReports to myTreeModulesReports the contents of the string >> literal will be changed to "myTreeModulesReports" as well, and you >> will be >> able to continue using VS form designer. >
In other words: it's a feature, and a clever one too :)
>
-- Dmitry Lomov Software Developer JetBrains Inc. http://www.jetbrains.com "Develop With Pleasure!"
Valentin Kipiatkov Chief Scientist, Vice President of Product Development JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
>> String literals assigned to the Name property of a control are >> treated >> by >> ReSharper as field names. For instance, in the example that you have >> sent >> the contents of "treeModulesReports" is highlighted in the same color >> as the >> field treeModulesReports. >> This is done intentionally, because if the contents of the Name >> property is >> different from the field name VS form designer does not work >> properly. >> To >> keep VS form designer happy ReSharper treats "treeModulesReports" as >> reference to treeModulesReports field. For example, if you rename >> treeModulesReports to myTreeModulesReports the contents of the string >> literal will be changed to "myTreeModulesReports" as well, and you >> will be >> able to continue using VS form designer.
In other words: it's a feature, and a clever one too :)
-- Dmitry Lomov Software Developer JetBrains Inc. http://www.jetbrains.com "Develop With Pleasure!"
String literals assigned to the Name property of a control are treated by
ReSharper as field names. For instance, in the example that you have sent
the contents of "treeModulesReports" is highlighted in the same color as the
field treeModulesReports.
This is done intentionally, because if the contents of the Name property is
different from the field name VS form designer does not work properly. To
keep VS form designer happy ReSharper treats "treeModulesReports" as
reference to treeModulesReports field. For example, if you rename
treeModulesReports to myTreeModulesReports the contents of the string
literal will be changed to "myTreeModulesReports" as well, and you will be
able to continue using VS form designer.
--
Andrey Simanovsky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Liviu Uba" <liviu_uba@gmx.de> wrote in message
news:ct6154$n2k$1@is.intellij.net...
>
>
In other words: it's a feature, and a clever one too :)
--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop With Pleasure!"
Ok, than...it's not a bug
"Dmitry Lomov (JetBrains)" <dmitry.lomov@jetbrains.com> wrote in message
news:107327632422878457963498@news.intellij.net...
>
>> String literals assigned to the Name property of a control are treated
>> by
>> ReSharper as field names. For instance, in the example that you have
>> sent
>> the contents of "treeModulesReports" is highlighted in the same color
>> as the
>> field treeModulesReports.
>> This is done intentionally, because if the contents of the Name
>> property is
>> different from the field name VS form designer does not work properly.
>> To
>> keep VS form designer happy ReSharper treats "treeModulesReports" as
>> reference to treeModulesReports field. For example, if you rename
>> treeModulesReports to myTreeModulesReports the contents of the string
>> literal will be changed to "myTreeModulesReports" as well, and you
>> will be
>> able to continue using VS form designer.
>
>
I think it's confusing. I actually have submitted request to fix this some
time ago:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=5446
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>> String literals assigned to the Name property of a control are
>> treated
>> by
>> ReSharper as field names. For instance, in the example that you have
>> sent
>> the contents of "treeModulesReports" is highlighted in the same color
>> as the
>> field treeModulesReports.
>> This is done intentionally, because if the contents of the Name
>> property is
>> different from the field name VS form designer does not work
>> properly.
>> To
>> keep VS form designer happy ReSharper treats "treeModulesReports" as
>> reference to treeModulesReports field. For example, if you rename
>> treeModulesReports to myTreeModulesReports the contents of the string
>> literal will be changed to "myTreeModulesReports" as well, and you
>> will be
>> able to continue using VS form designer.