I am trying to write a TypeConverter, but everyone I try and add gets the error "marked as override cannot be marked as new or virtual". Below is a sample of one of them:
What am I doing wrong?
C#:
public class DefectCollectionParametersTypeConverter : ExpandableObjectConverter
{
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, System.Type sourceType)
{
if ((sourceType == typeof(string)))
return true;
return base.CanConvertFrom(context, sourceType);
}
}
What am I doing wrong?