Considering the code below:
public class TableMain {
public virtual event Action UpdateFilter;
....
}
public class TableSub : TableMain {
public override event Action UpdateFilter;
public void UpdateQuery(){
.....
if(UpdateFilter!=null){
UpdateFilter(); // Invocation of polymorphic field-like event???
}
}
}
In this code resharper shows the alert "invocation of polymorphic like event".
My question is: What does it actually mean? and is it an alert for a bad programming practice? Also, is it a bad practice to call an event polymorphically? ( Knowing that an event can only be raised from the class which has declared it)
Thanks for your interest.