Dependency Property是否实现了Flyweight模式?(Does Dependency Property implement Flyweight Pattern?)

编程入门 行业动态 更新时间:2024-10-08 19:43:52
Dependency Property是否实现了Flyweight模式?(Does Dependency Property implement Flyweight Pattern?)

WPF中的依赖属性系统应用Flyweight模式来节省内存存储吗?

Is the dependency property system in WPF the Flyweight Pattern applied to save memory storage?

最满意答案

我相信你可以把它视为flyweight模式的实现。

默认值在相同类型的所有控件之间共享。 只有那些偏离默认值的属性才会占用额外的内存。

其他信息可以在Christian Mosers博客上找到,或者在msdn的价值优先页面上找到。

I believe you could consider it as an implementation of the flyweight pattern yes.

Default values are shared across all controls of the same type. Only those properties that deviate from the default values take up extra memory.

Additional information can be found on Christian Mosers blog, or msdn's page on value precedence.

更多推荐

本文发布于:2023-08-07 18:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465279.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实现了   模式   Dependency   Property   Pattern

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!