internal static void RemoveInvalidMarkersCommand(TrackAsset target) { var invalids = target.GetMarkersRaw().Where(x => !(x is IMarker)).ToList(); foreach (var m in invalids) { target.DeleteMarkerRaw(m); } }