Loop set property warning
Hello, I wrote a stupid mistake, and was wondering if you can create a test to tell this kind of problem.
By setting the value of a property, I passed the value for the property, and not for the private field, and there came in a loop every time that defined the property value. It is possible create an alert for this kind of problem?
public ParameterCollection Parameters
{
get { return _parameters; }
set { Parameter = value; } // explode my build server :D
}
Thanks
Please sign in to leave a comment.
Hello,
Thank you for feedback! We've already received similar requests and we will
certainly implement such analysis in one of the future releases.
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"