I have a interface variable IAction nextAction.
I want to see if the nextAction is of a concrete implementation, but was unsuccessful when I tried the following:
IAction nextAction = GetNextAction();
if (nextAction.GetType() != typeof(LastAction)) {
// do something...
}
any ideas on how I can determine the concrete type of the IAction variable nextAction?