title: PropertyInfo.SetValue on a property List(Of Int32)
body: <p>I Have a Class with some List Properties Like This:</p>
  
  <pre><code>Public Class ListPropertiesClass
      Public Property Id As List(Of Int32)
  End Class
  </code></pre>
  
  <p>And another class where I use Reflection : </p>
  
  <pre><code>Public Class Test
  
     Public Sub MySub()
  
        Dim IdentityValue as Int32 = 100
        Dim PropertyName as String = "Id"
        Dim LPC as new ListPropertiesClass
        Dim pInfo As PropertyInfo
  
        pInfo = LPC.GetType().GetProperty(PropertyName)
        If Not pInfo Is Nothing Then
  
            pInfo.SetValue(LPC, Convert.ToInt32(IdentityValue), Nothing)
  
         End If
  
     End Sub
  
  End Class
  </code></pre>
  
  <p>But When I try to use it its not working because I'm trying to set a value of type Int32 to a List one, how can I Use the PropertyInfo.SetValue to Add List Itens ? And After adding how can I get the value also using reflection to get the value of the specific index of the list</p>
  
  <pre><code>pInfo.GetValue(LPC, Nothing)
  </code></pre>
  
  <p>I would be very happy if anyone can help me. Thanks.</p>