Wrong Field can be made local variable

In the test below i have a function that keeps track if it was initialized.
with a mbinitialized variable

Resharper suggests to convert it to a local variable which would change the
semantic.



public class Test

{

private bool mbInitialized ;

public void Init()

{

if (mbInitialized == false)

{

// Doing Initialization

mbInitialized = true;

}

}

}



Sincerly Thomas Stocker



__________ Information from ESET Smart Security, version of virus signature database 3920 (20090309) __________

The message was checked by ESET Smart Security.

http://www.eset.com




1 comment
Comment actions Permalink

Hello,

We appreciate your feedback. The corresponding JIRA request has been created,
and you are welcome to monitor its status at http://www.jetbrains.net/jira/browse/RSRP-97798.

You may want to check our request tracking policy here: http://www.jetbrains.net/confluence/display/ReSharper/ReSharperIssueTracker

Best regards,
- Development Team.


0

Please sign in to leave a comment.