Any drawbacks of using - CType(myList(i), SampleClass).ClassMethod ?
"alejandro lapeyre" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> well, you can do this
>
> CType(myList(i), SampleClass).ClassMethod
>
> or at least define:
>
> Function SampleClassItem(index as integer) as SampleClass
> return CType(myList(index), SampleClass)
> End Function
>
> and then you can use:
>
> SampleClassItem(i).ClassMethod
>
> Best Regards,
> Alejandro Lapeyre
>
>
> "Nikolay Petrov" <johntup2_nospam_@mail.bg> escribió en el mensaje
> news:%(E-Mail Removed)...
> When create an array of type some class I can access the class method this
> way:
>
> Dim AccClass(1234) as SampleClass
> arrClass(i).ClassMethod
>
> Is the same possible with ArrayList or other type of Collection?
>
> Thanks in advance
>
>
>
|