问题描述
大家好......
我有一个名为UserVO的类我在哪里创建了一些变量并通过Refactor创建方法 - > Encapsulate方法...我在该类中添加了一个新字段并使用'Refactor'属性创建了set和get方法。我的问题是当我在我的aspx页面中为这个类创建了对象时,我能够在输入objectname和dot之后得到所有字段。但是新添加的字段不存在在那个列表..不知道问题在哪里..任何人都可以帮助这个Refactor和Encapsulate领域...在此先感谢..
Hi Everyone...
I have a class by name UserVO Where I created some variables and created methods by Refactor-->Encapsulate method...I added one new field to that class and created set and get methods using 'Refactor' property..My problem is when I created object for this class in my aspx page I am able to get all fields once I type objectname and dot..But the newly added field is not there in that list..Dont know where the problem is..can anyone help with this Refactor and Encapsulate field...Thanks in advance..
推荐答案
这篇关于用c#在asp.net中重构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!