コード例 #1
0
ファイル: Application.cs プロジェクト: kraib/InventoryManager
        public global::System.Collections.Generic.IEnumerable <global::System.IO.Stream> LoadModelFragments()
        {
            global::System.Reflection.Assembly assembly = global::System.Reflection.Assembly.GetExecutingAssembly();
            global::System.Collections.Generic.List <global::System.IO.Stream> streams = new global::System.Collections.Generic.List <global::System.IO.Stream>();

            foreach (string resourceName in assembly.GetManifestResourceNames())
            {
                if (resourceName.EndsWith(".lsml", global::System.StringComparison.OrdinalIgnoreCase))
                {
                    streams.Add(assembly.GetManifestResourceStream(resourceName));
                }
            }

            return(streams);
        }