using System.Xml.Linq; namespace K4os.Outbox.Resources; public class EmbeddedResourceLoader { public static Stream GetStream(string path) => typeof(THook).Assembly.GetManifestResourceStream(typeof(THook), path) ?? throw new ArgumentException($"Embedded resource '{path}' not found"); public static XDocument GetXml(string path) => XDocument.Load(GetStream(path)); }