How do I extract just the file name excluding the namespace using the following code? Currently this code includes the entire namespace from GetManifestResourceNames().
 Assembly assembly = System.Reflection.Assembly.LoadFile(resourceLocation + @"\\" + file);
            string[] names = assembly.GetManifestResourceNames();
            foreach (var name in names.Where(x => x.EndsWith("xsd")).ToList())
            {
                using (System.IO.Stream stream = assembly.GetManifestResourceStream(name))
                {
                    using (System.IO.FileStream fileStream = new System.IO.FileStream(System.IO.Path.Combine(outputDir, name), System.IO.FileMode.Create))