第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

關(guān)于在 vista,Win7上屬性重寫的問題

關(guān)于在 vista,Win7上屬性重寫的問題

慕的地8271018 2018-11-05 05:07:51
我在父類寫了一個(gè)屬性        private string m_Text = "abc";        public virtual string Text        {            get { return m_Text; }            set { m_Text = value; }        }在子類重寫        public override string Text        {            set            {                base.Text = value;            }        }我在其他類中調(diào)用            Child child = new Child();            MessageBox.Show(child.Text)這時(shí)候,我在除vista,Win7的系統(tǒng)上測(cè)試,都可以正常顯示Text的值。但是在vista,Win7測(cè)試,具體跟蹤的時(shí)候,查看Text的值,會(huì)出現(xiàn)cannot be used in this context because it lacks the get accessor。但是執(zhí)行是沒問題的。不知道是什么原因,Anyone can help me?
查看完整描述

2 回答

?
梵蒂岡之花

TA貢獻(xiàn)1900條經(jīng)驗(yàn) 獲得超5個(gè)贊

跟系統(tǒng)無關(guān)的 我不知道你在其他系統(tǒng)怎么會(huì)取到值,你是不是用了Parent child = new Child() ?

查看完整回答
反對(duì) 回復(fù) 2018-11-06
  • 2 回答
  • 0 關(guān)注
  • 398 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)