File: 32304-DefaultProperty4.vb

package info (click to toggle)
mono-basic 2.10-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 22,964 kB
  • sloc: cs: 34,086; xml: 7,804; makefile: 471; sh: 317
file content (23 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (4)
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