Noob問題在這裏,但我真的卡住了!可以通過應用程序使用的類
我試圖建立一個類,雖然可以使用我的應用程序稱爲UpdateDatabase
。 UpdateDatabase.cs
文件存儲在我的AppName.Helpers
名稱空間中,並且我已將using AppName.Helpers
聲明爲UpdateDatabase
。
我在撥打UpdateDatabase
時遇到問題。我已將其設置爲public class UpdateDatabase
。這是正確的做法嗎?
範圍內UpdateDatabase
我有幾個其他類UpdateCustomers
,UpdateEmployees
和UpdateProducts
。我希望用戶能夠點擊一個按鈕,請撥打UpdateDatabase
,然後開始執行UpdateDatabase
中的三個「子類」。
無處不在,我稱之爲UpdateDatabase
我得到一個錯誤說AppName.Helpers.UpdateDatabase' is a 'type' but is used like a 'variable
請發佈代碼給你的錯誤。 –