1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<System.Reflection.DefaultMember("iIeM")> _
Class DefaultProperty4
Default ReadOnly Property Item(ByVal i As Integer) As String
Get
Return Nothing
End Get
End Property
Default ReadOnly Property Item(ByVal i As String) As String
Get
Return Nothing
End Get
End Property
Shared Function Main() As Integer
Try
Dim obj As Object
obj = System.Attribute.GetCustomAttribute(GetType(DefaultProperty4), GetType(System.Reflection.DefaultMemberAttribute), False)
Catch ex As Exception
System.Console.WriteLine(ex.Message)
Return 1
End Try
End Function
End Class
|