[Mono-dev] more Gendarme rules

Néstor Salceda nestor.salceda at gmail.com
Wed Jun 13 12:53:43 EDT 2007


Hey Vladimir

> public Type PropertyName
> {
>    get
>    {
>       return this.PropertyName;  //this will crash your app
>    }
>    set
>    {
>       return this.PropertyName = value;  //this will crash your app
>    }
> }
> 
> This is fairly easy to find, but should also be easy find by some code
> analyzer.  Gendarme rule or compiler warning...  Either way, I await
> the next MonoDevelop with baited breath.

Yes Vladimir, you can check the rule BadRecursiveInvocationRule in the
Correctness category, I believe that you are looking for that rule.

You can get more info about the rule in
http://www.mono-project.com/Gendarme

> Thanks,
> 
> Vlad
-- 
Néstor Salceda <nestor.salceda at gmail.com>




More information about the Mono-devel-list mailing list