Hi
Im writing a FxCop custom rule for identifying the prefix for a bool variable.
It works fine for many cases, but fails for few lines like below
lock(data)
{
}
In the above line, a default bool name "<>s__LockTaken0" is getting created and my rule is firing for all such variables as well
I've used IsComplierGenerated() to check for user defined variables alone but still the above varaible is not being ignored.Its being treated as bool.
How can I identify such variables ?