向我解释这段代码

向我解释这段代码

问题描述:

大家好,我告诉我wt这段代码是什么意思?

Dim Selectedlist作为List(Of Control)=新List(Of Control)

hi all plz explain me wt does this code mean?

Dim Selectedlist As List(Of Control) = New List(Of Control)

它声明了一个名为"SelectedList"的变量,该变量引用只能包含以下内容的List控件和派生自Control的类.然后为它分配一个新的空白控件列表.

我宣布该Dim Selectedlist为List(Of Control)= New List(Of Control)此编码,但它出现了一些错误,您能告诉我wt是该错误的意思,以及我想从该错误中纠正的内容"

它给了什么错误?它什么时候给的?
It declares a variable called "SelectedList", which refers to a List which can only contain Controls and classes derived from Control. It then assigns a new, empty list of Controls to it.

"i declared that Dim Selectedlist As List(Of Control) = New List(Of Control) this coding but its shoing some error,, can u tell me wt is that error means,and what i want to for rectify from that error"

What error did it give? When did it give it?