I have a base class like this:
public class BaseModalCommand
{
protected object m_commandArgument;
protected int m_commandID;
protected int m_enableUIFlags;
public virtual void OnIdle()
{
}
public virtual void OnResume()
{
}
public virtual void OnStart(int commandID, object argument)
{
}
public virtual void OnStop()
{
}
public virtual int EnableUIFlags
{
get
{
return this.m_enableUIFlags;
}
}
}
The virtual methods are to be overridden in derived types. If I run it thru FxCop, it complains about not declaring visible instance fields and recommends changing it to private and exposing it as a protected property.
Any thoughts? I'm thinking this message can be ignored.