Click here to Skip to main content
15,911,646 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
ElementAt(..) is an extension-method and these aren't supported for dynamic typing (which is what you're doing because the return type of CallByName(..) is Object). However, you can either cast the returned object to the actual type and then call the extension method on it:
VB
CType(CallByName(MyObject, "Child1", CallType.Get), HashSet(Of Child1)).ElementAt(k)
..or you can pass the object to Enumerable.ElementAt(..) as a parameter:
VB
Enumerable.ElementAt(CallByName(MyObject, "Child1", CallType.Get), k)


modified 15-Apr-15 5:33am.

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 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre15-Apr-15 9:29
professionalSascha Lefèvre15-Apr-15 9:29 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 10:47
dilkonika15-Apr-15 10:47 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre15-Apr-15 11:10
professionalSascha Lefèvre15-Apr-15 11:10 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 11:15
dilkonika15-Apr-15 11:15 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre15-Apr-15 11:22
professionalSascha Lefèvre15-Apr-15 11:22 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 11:53
dilkonika15-Apr-15 11:53 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre15-Apr-15 12:31
professionalSascha Lefèvre15-Apr-15 12:31 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 12:59
dilkonika15-Apr-15 12:59 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
Sascha Lefèvre15-Apr-15 13:24
professionalSascha Lefèvre15-Apr-15 13:24 
GeneralRe: HashSet(Of T) - how can I get elements by position number ? Pin
dilkonika15-Apr-15 13:50
dilkonika15-Apr-15 13:50 

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.