I\'ll prefix by saying that I understand that both Code Analysis and StyleCop are meant as guidelines, and many people chose to ignore these anyway. But having said that, I
Simple, use the suffix 'Field' for private fields when there's a class:
private Int32 counterField;
public Int32 Counter
{
get
{
return this.counterField;
}
set
{
if (this.counterField != value)
{
this.counterField = value;
this.OnPropertyChanged("Counter");
}
}
And you can satisfy both rules. Decorating your variables with any characters or hungarian prefixes is tribal. Everybody can find a rule that they don't like in StyleCop or FXCop, but a standard only works when everyone uses it. The benefits of an automated scrubber of code far outweigh your own personal 'artistic' contributions to the language.