#region 私有字段
        private string _username;
        private string _time;
        private string _threeParam;        /// <summary>
        /// 用户
        /// </summary>
        public string UserName
        {
            get { return _username; }
            set { this._username = UserName; }
        }        /// <summary>
        /// 时间戳
        /// </summary>
        public string Time
        {
            get { return _time; }
            set { this._time = Time; }
        }        /// <summary>
        /// 用户名+密码+时间戳+'HUAKE' (MD5码)
        /// </summary>
        public string ThreeParam
        {
            get { return _threeParam; }
            set { this._threeParam = ThreeParam; }
        }
        #endregion在引用以后,怎么找不到这些公有成员,并且我重新写带参的构造函数,也找不见,请问为什么?

解决方案 »

  1.   

    你的类前面是pubilc的吗?要在类之前加pubilc才可以访问该类。。
      

  2.   

    可以的,但是要这样写#region 私有字段
        private string _username;
        private string _time;
        private string _threeParam;    /// <summary>
        /// 用户
        /// </summary>
        public string UserName
        {
            get { return _username; }
            set { this._username = value ; }
        }    /// <summary>
        /// 时间戳
        /// </summary>
        public string Time
        {
            get { return _time; }
            set { this._time = value; }
        }    /// <summary>
        /// 用户名+密码+时间戳+'HUAKE' (MD5码)
        /// </summary>
        public string ThreeParam
        {
            get { return _threeParam; }
            set { this._threeParam = value; }
        }
        #endregion提醒你的问题就是namespace *****
    一写要一致
      

  3.   

    实体类?直接这种形式就行publick string UserName{get;set;}
      

  4.   

    你新建的实体类有public修饰符没?
      

  5.   

    靠,看错了,Web服务需要加webmethod,才能公布出来!~但是我重构构造函数也需要公司吗?
      

  6.   


    [WebMethod(Description="验证是否为会员")]
            public void GetWetSevc(string username, string time, string threeParam) 
            {
                this._username = username;
                this._time = time;
                this._threeParam = threeParam;
                return new MeetingWebSevc();
            }这样都不行,郁闷