Imports System.Collections.Generic
Dim member1 = New Member()
member1.Eligibilities = New List(Of MemberEligibility)
If member1.Eligibilities.Count > 0 Then
If member1.Eligibilities(0) Is Nothing Then
Console.WriteLine("First element is NULL")
member1.Eligibilities.Add(New MemberEligibility())
If member1.Eligibilities.Count > 0 Then
If member1.Eligibilities(0) IsNot Nothing Then
Console.WriteLine("First element is initialized")
Private _eligibility As MemberEligibility
Private _eligibilities As List(Of MemberEligibility)
Public Property Eligibility As MemberEligibility
Public Property Eligibilities As List(Of MemberEligibility)
Me._eligibilities = Value
Public Class MemberEligibility