Click here to Skip to main content
15,919,132 members
Home / Discussions / C#
   

C#

 
GeneralDatagrid Record Numbering Pin
sreejith ss nair6-Apr-04 19:49
sreejith ss nair6-Apr-04 19:49 
GeneralRe: Datagrid Record Numbering Pin
Heath Stewart7-Apr-04 3:52
protectorHeath Stewart7-Apr-04 3:52 
QuestionMicrosoft.DirectX and image ??? Pin
student66696-Apr-04 19:39
student66696-Apr-04 19:39 
AnswerRe: Microsoft.DirectX and image ??? Pin
CWIZO6-Apr-04 20:52
CWIZO6-Apr-04 20:52 
GeneralRe: Microsoft.DirectX and image ??? Pin
Heath Stewart7-Apr-04 3:47
protectorHeath Stewart7-Apr-04 3:47 
GeneralRe: Date Pin
Christian Graus6-Apr-04 19:35
protectorChristian Graus6-Apr-04 19:35 
QuestionArrayList.........how to access??? Pin
Paolo Ponzano6-Apr-04 18:00
Paolo Ponzano6-Apr-04 18:00 
AnswerRe: ArrayList.........how to access??? Pin
Christian Graus6-Apr-04 19:03
protectorChristian Graus6-Apr-04 19:03 
Because there are no templates, your container has no idea what it contains, it just knows it contains objects ( because everything is an object ). So, in order to use what is in your array, you need to do one of two things:

1. Contain an ArrayList in a class called LineToCheckArrayList, or whatever, so that it's access methods are strongly typed

2. Cast the return from the ArrayList every time you use it. To be really correct, you should us the 'as' keyword ( i.e. array[0] as LineToCheck, not (LineToCheck)array[0] ), which will not blow up, but return null if the object is not of the type you expect. Obviously, this is not a good idea unless you intend to check the type yourself. You can use the 'is' keyword for this, as in if(item is LineToCheck).



Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
AnswerRe: ArrayList.........how to access??? Pin
sreejith ss nair6-Apr-04 20:15
sreejith ss nair6-Apr-04 20:15 
GeneralI have msdn'd and googled but its still not clear Pin
MeterMan6-Apr-04 15:26
MeterMan6-Apr-04 15:26 
GeneralRe: I have msdn'd and googled but its still not clear Pin
Dave Kreskowiak6-Apr-04 17:59
mveDave Kreskowiak6-Apr-04 17:59 
GeneralRe: I have msdn'd and googled but its still not clear Pin
Tony Archer7-May-04 9:11
Tony Archer7-May-04 9:11 
QuestionData Currency???????? Pin
Small Rat6-Apr-04 14:00
Small Rat6-Apr-04 14:00 
AnswerRe: Data Currency???????? Pin
Heath Stewart7-Apr-04 3:33
protectorHeath Stewart7-Apr-04 3:33 
GeneralRe: Data Currency???????? Pin
Small Rat7-Apr-04 7:33
Small Rat7-Apr-04 7:33 
GeneralRe: Data Currency???????? Pin
Heath Stewart7-Apr-04 8:36
protectorHeath Stewart7-Apr-04 8:36 
General.NET Framework version issue Pin
Ruchi Gupta6-Apr-04 13:30
Ruchi Gupta6-Apr-04 13:30 
GeneralRe: .NET Framework version issue Pin
Heath Stewart7-Apr-04 3:18
protectorHeath Stewart7-Apr-04 3:18 
GeneralRe: .NET Framework version issue Pin
Ruchi Gupta7-Apr-04 4:52
Ruchi Gupta7-Apr-04 4:52 
GeneralRe: .NET Framework version issue Pin
Heath Stewart7-Apr-04 5:11
protectorHeath Stewart7-Apr-04 5:11 
GeneralRe: .NET Framework version issue Pin
Ruchi Gupta7-Apr-04 5:53
Ruchi Gupta7-Apr-04 5:53 
GeneralRe: .NET Framework version issue Pin
Heath Stewart7-Apr-04 6:54
protectorHeath Stewart7-Apr-04 6:54 
GeneralRSS Aggregator Pin
mil_an6-Apr-04 12:22
mil_an6-Apr-04 12:22 
GeneralRe: RSS Aggregator Pin
Heath Stewart6-Apr-04 12:32
protectorHeath Stewart6-Apr-04 12:32 
GeneralRe: RSS Aggregator Pin
mil_an6-Apr-04 12:48
mil_an6-Apr-04 12:48 

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.