阅读背景:

在类之间管理共享资源?

来源:互联网 

Imagine that I have a several Viewer component that are used for displaying text and they have few modes that user can switch (different font presets for viewing text/binary/hex). What would be the best approach for managing shared objects - for example fonts, find dialog, etc? I figured that static class with lazily initialized objects would be OK, but this might be the wrong idea.Imagine that I have a several Viewer component




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: