I've been doing some research on it. What I found is a list of quite nice samples but for other languages here.
I also looked at sonar-dotnet. But it doesn't look similar to the other implementations.
Finally, and to be honest probably my last chance, I took a quick look at FxCop Custom Rules and I'm not sure what would be the right way.
What I'm trying to do is just a basic c# rule that can be reviewed like this predefined by sonar.
I mean, with Noncompliant Code and Compliant Solution.