protected override bool CheckRuntimeType(GrandParent item) { if (item == null) { return(false); } return(item.GetType() == typeof(Parent)); }