For a tighter integration, the source code for this component can be used to create a wrapper for specific OLE components that expose more deeply integrated properties and actions.
要实现更紧密的集成,对于公布更深入集成的属性和动作的特定OLE组件,可以使用该组件的源代码为其创建包装器。
You should expose properties instead of public fields from your components, because properties can be versioned, they allow data hiding, and the accessor methods can execute additional logic.
您应该公开组件的属性而不是公共字段,因为属性的版本可以控制,它们允许数据隐藏,并且访问器方法可以执行附加逻辑。
You should expose properties instead of public fields from your components, because properties can be versioned, they allow data hiding, and the accessor methods can execute additional logic.
您应该公开组件的属性而不是公共字段,因为属性的版本可以控制,它们允许数据隐藏,并且访问器方法可以执行附加逻辑。
应用推荐