UserVo设置和获取方法 [英] UserVo setter and getter method

查看:472
本文介绍了UserVo设置和获取方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI 我有一个类UsersVo,我在其中使用Refactor属性声明变量以及它们的setter和getter方法...最近我向该类添加了两个变量.但是在创建该类的对象后,我没有得到在帮助中添加的变量列表.所有以前的变量都在列表中.请帮助进行排序.也帮助我在Value Object类中创建setter和getter方法的步骤.

HI I have one Class UsersVo where I declare variables and their setter and getter methods using Refactor property...Recently I ADDED two variables to that class..But after creating object to that class I am not getting the variables that I added in the help list..All the Previous variables am getting in the list..please help to sort it out..Also help me the steps to create setter and getter methods in Value Object class..

public class UsersVO
{
 //Doctors Profile
    int _DoctorId;
    string _Firstname;
    string _Middlename;
    string _Lastname;
    int _MainSpecialityID;
    string _MainSpeciality;
}
 public string Firstname
    {
        get
        {
            return _Firstname;
        }
        set
        {
            _Firstname = value;
        }
    }
    public string Middlename
    {
        get
        {
            return _Middlename;
        }
        set
        {
            _Middlename = value;
        }
    }

推荐答案

嗨拉迪卡,

您需要重新构建具有UsersVO类的项目.

如果这不能解决您的问题,请将该项目的引用重新添加到主项目中.
Hi Radhika,

You need to rebuild the project which has UsersVO class individualy.

If this is not resolving your problem then re add the reference of that project into main project.


这篇关于UserVo设置和获取方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆