且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从数据库中保存和加载属性?

更新时间:2023-12-01 22:50:10

你没有。



特别是,即使尝试恢复其中一些也会导致问题:Parent不是一个控件,可以产生任何特别有用的字符串:如果它是一个表单,它将返回完全表单类的限定名称,以及标题栏上显示的文本。这无法帮助您恢复控件!



您不需要对已经是字符串的值使用ToString:例如Name和Text。

你想做什么,你认为这是一个好主意?
You don't.

Particularly, even trying to restore some of those would cause problems: Parent is not a control that produces anything particularly useful as a string: if it is a form, it will return the fully qualified name of the form class, and the text that is displayed on the title bar. This will not help you restore the control!

You do not need to use ToString on values that are already strings: Name, and Text for example.
What are you trying to do, that you think this is a good idea?


ayawg kabalaka dan。 sabotan lang nato na ugma XD
ayawg kabalaka dan. sabotan lang nato na ugma XD