Click here to Skip to main content
15,892,809 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Create a list of Unknown type at compile time Pin
Sascha Lefèvre16-Apr-15 11:02
professionalSascha Lefèvre16-Apr-15 11:02 
GeneralRe: Create a list of Unknown type at compile time Pin
dilkonika16-Apr-15 11:53
dilkonika16-Apr-15 11:53 
GeneralRe: Create a list of Unknown type at compile time Pin
Sascha Lefèvre16-Apr-15 12:15
professionalSascha Lefèvre16-Apr-15 12:15 
GeneralRe: Create a list of Unknown type at compile time Pin
dilkonika16-Apr-15 13:05
dilkonika16-Apr-15 13:05 
GeneralRe: Create a list of Unknown type at compile time Pin
Sascha Lefèvre16-Apr-15 13:14
professionalSascha Lefèvre16-Apr-15 13:14 
GeneralRe: Create a list of Unknown type at compile time Pin
dilkonika16-Apr-15 13:51
dilkonika16-Apr-15 13:51 
GeneralRe: Create a list of Unknown type at compile time Pin
Sascha Lefèvre16-Apr-15 14:18
professionalSascha Lefèvre16-Apr-15 14:18 
GeneralRe: Create a list of Unknown type at compile time Pin
dilkonika16-Apr-15 14:23
dilkonika16-Apr-15 14:23 
I add :
Imports System.Collections
and now the errors are resolved.
But I have some problems in runtime
  1. I want first to initialize an empty list.
    Because if I have just the :
    dim itemlist as Ilist
( Before calling these 2 lines
VB
Dim customList As Type = GetType(List(Of )).MakeGenericType(GetType(MyClass))
        itemlist = CType(Activator.CreateInstance(customList), IList)

How can I check if the list is empty or ?? something similar. But I want a general checkin mode , because the same expression must be correct even when I clear the list and I want to check if empty ( before initializing for a new type ).

( I try to use
If itemlist.Count > 0 Then
but doesn't work.
GeneralRe: Create a list of Unknown type at compile time Pin
Sascha Lefèvre16-Apr-15 14:39
professionalSascha Lefèvre16-Apr-15 14:39 
GeneralRe: Create a list of Unknown type at compile time Pin
dilkonika16-Apr-15 16:03
dilkonika16-Apr-15 16:03 
GeneralRe: Create a list of Unknown type at compile time Pin
Sascha Lefèvre17-Apr-15 2:53
professionalSascha Lefèvre17-Apr-15 2:53 
QuestionExtended ASCII with UTF-8 in VB.NET Pin
r_m_radha15-Apr-15 2:28
r_m_radha15-Apr-15 2:28 
AnswerRe: Extended ASCII with UTF-8 in VB.NET Pin
Richard MacCutchan15-Apr-15 2:41
mveRichard MacCutchan15-Apr-15 2:41 
GeneralRe: Extended ASCII with UTF-8 in VB.NET Pin
r_m_radha15-Apr-15 17:44
r_m_radha15-Apr-15 17:44 
GeneralRe: Extended ASCII with UTF-8 in VB.NET Pin
Richard MacCutchan15-Apr-15 21:30
mveRichard MacCutchan15-Apr-15 21:30 
QuestionHashSet(Of T) - how can I get elements by position number ? Pin
dilkonika14-Apr-15 12:20
dilkonika14-Apr-15 12:20 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
PIEBALDconsult14-Apr-15 12:55
mvePIEBALDconsult14-Apr-15 12:55 
AnswerRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre14-Apr-15 13:23
professionalSascha Lefèvre14-Apr-15 13:23 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika14-Apr-15 16:42
dilkonika14-Apr-15 16:42 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre14-Apr-15 22:57
professionalSascha Lefèvre14-Apr-15 22:57 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 6:34
dilkonika15-Apr-15 6:34 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre15-Apr-15 7:19
professionalSascha Lefèvre15-Apr-15 7:19 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 7:34
dilkonika15-Apr-15 7:34 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre15-Apr-15 7:54
professionalSascha Lefèvre15-Apr-15 7:54 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 8:23
dilkonika15-Apr-15 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.