public class MyClass
{
private Func<string, string> KeyTransformer;
public MyClass(Func<string, string> keyTransformer)
{
KeyTransformer = keyTransformer;
}
public string DoSomething(string input)
{
return KeyTransformer(input);
}
}
Obviously Resharper suggests me to rename the "field" to _keyTransformer.
But it feels wrong to write something like that:
string newKey = _keyTransformer("input");
So question #1 is: Pascal casing or camel casing?
And question #2 is (in case it is pascal): How do I tell Resharper it's okay to have pascal casing for Func?