I am writing below code(converted VB code into C#) for Windows application:
public class SptCommand:DefaultPlugInCommand
{
public JourneyDeactivationCommand(PlugInCommandDescriptor poPlugInCommandDescriptor) : base(poPlugInCommandDescriptor)
{
}
public override bool Visible(Object poTarget)
{
get
{
if (base.Visible(poTarget))
{
if (poTarget is Journey)
{
return ((Journey)poTarget).PlanType == TimetableEntityTypes.Scheduled;
}
}
return false;
}
}
}
It is giving me error (red line) at:
1) override
2) get
3) base.Visible()
Please reply why these errors are coming.