示例#1
0
        private static Stream GetResourceStream(Assembly assembly, string partName)
        {
            Stream stream = ResourceUtil.GetEmbeddedResource(assembly, partName);

            TkDebug.AssertNotNull(stream, string.Format(ObjectUtil.SysCulture,
                                                        "程序集{0}中没有名称包含{1}的资源", assembly, partName), null);
            return(stream);
        }