0

我想重写 ascx usercontroll 上的 Gettype 方法,以返回特定类型以与 TypeOf 进行比较。

我当前的方法是在我的用户控件上添加一个属性和:

   Private Property Type As App.Controls.DropdownCustom
Public Shadows Function [GetType]() As Type
    Return Type.GetType()
End Function

但他仍然返回当前类型的用户控件名称。

4

0 回答 0