图像添加到 resx 文件中
这对我来说是一个有趣的文件。 我发现,每当向其中添加图像时,图像实际上都会转换为字节并存储为数据而不是文件。 我只是想知道这样做的好处?当文件放入版本控制时,字节是否有可能被占用(最不可能)
This has been a interesting file for me.
I found that ,whenever a image is added to this ,the image is actually converted into bytes and stored as data rather than a file.
I just want to know the benefit of this?also will be there be chances of bytes getting curropted when the file is put into version control(Most unlikely)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
文件只不过是写入磁盘的数据,通常包含实际数据加上一些标头信息(例如图像类型,这样您就知道如何解释数据)。如果它有助于您理解,请将 resx 文件视为可以从中检索图像数据的“迷你”文件系统。
如果放入版本控制中,resx 文件应该没有问题。
A file is nothing else but data written to disk and usually contains the actual data plus some header information (e.g. image type, so you know how to interprete the data). If it helps you understand it, think of the resx file as a "mini" file system from which the image data can be retrieved.
If put in version control, resx files should be no problem.
您可能想看看
ResourceManager
。
You might want to take a look at
ResourceManager
.