internal static IEnumerable<Events.Base> Parse(ILoader loader, bool dispose) { while (loader.CheckEvent()) yield return loader.GetEvent(); if (dispose) loader.Dispose(); }