vb System.ComponentModel.PropertyDescriptorCollection.IDictionary.GetEnumerator类(方法)实例源码

下面列出了vb System.ComponentModel.PropertyDescriptorCollection.IDictionary.GetEnumerator 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.ComponentMode   
Private Sub MyEnumerator()
    ' Creates a new collection and assigns it the properties for button1.
    Dim properties As PropertyDescriptorCollection = _
       TypeDescriptor.GetProperties(button1)
       
    ' Creates an enumerator.
    Dim ie As IEnumerator = properties.GetEnumerator()
       
    ' Prints the name of each property in the collection.
    Dim myProperty As Object
    While ie.MoveNext() = True
        myProperty = ie.Current
        textBox1.Text &= myProperty.ToString() & ControlChars.Cr
    End While
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号