Click here to Skip to main content
15,921,295 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Drawing question Pin
oliversimon22-Apr-08 2:45
oliversimon22-Apr-08 2:45 
QuestionCompare SortedList problem. Pin
dennycrane21-Apr-08 23:06
dennycrane21-Apr-08 23:06 
GeneralRe: Compare SortedList problem. Pin
Gopal.S22-Apr-08 0:52
Gopal.S22-Apr-08 0:52 
GeneralRe: Compare SortedList problem. Pin
dennycrane22-Apr-08 1:11
dennycrane22-Apr-08 1:11 
QuestionRetrieve Objects from ArrayList.. Pin
ptr2void21-Apr-08 22:57
ptr2void21-Apr-08 22:57 
GeneralRe: Retrieve Objects from ArrayList.. Pin
phannon8621-Apr-08 23:19
professionalphannon8621-Apr-08 23:19 
GeneralRe: Retrieve Objects from ArrayList.. Pin
ptr2void21-Apr-08 23:42
ptr2void21-Apr-08 23:42 
GeneralRe: Retrieve Objects from ArrayList.. Pin
phannon8621-Apr-08 23:54
professionalphannon8621-Apr-08 23:54 
This is just another reason why you should be using List instead of ArrayList. With List, it's type is known and you can refer to it's methods as you get the object from the list, but with ArrayList you would need to cast the object to the relevant type before being able to access any of it's available methods. In any case, the method for accessing the methods/properties of that object would be the same:

foreach(object myObject in myCollection)
{
    myObject.someProperty = true;
    myObject.someMethod();
}


He who makes a beast out of himself gets rid of the pain of being a man

GeneralRe: Retrieve Objects from ArrayList.. Pin
Pete O'Hanlon22-Apr-08 0:50
mvePete O'Hanlon22-Apr-08 0:50 
Questionhow to configure via app.config Pin
stephan_00721-Apr-08 22:35
stephan_00721-Apr-08 22:35 
QuestionHow can I convert generic list? Pin
marekS08221-Apr-08 21:56
marekS08221-Apr-08 21:56 
AnswerRe: How can I convert generic list? [modified] Pin
phannon8621-Apr-08 22:11
professionalphannon8621-Apr-08 22:11 
AnswerRe: How can I convert generic list? Pin
silbarad21-Apr-08 22:22
silbarad21-Apr-08 22:22 
GeneralRe: How can I convert generic list? Pin
phannon8621-Apr-08 22:33
professionalphannon8621-Apr-08 22:33 
AnswerRe: How can I convert generic list? Pin
marekS08221-Apr-08 22:30
marekS08221-Apr-08 22:30 
GeneralWindows Service Account Pin
telha21-Apr-08 21:42
telha21-Apr-08 21:42 
Generalproblem with DateTimePicker Control. Pin
avvaru.murali21-Apr-08 20:29
avvaru.murali21-Apr-08 20:29 
AnswerRe: problem with DateTimePicker Control. Pin
Christian Wikander21-Apr-08 20:39
Christian Wikander21-Apr-08 20:39 
GeneralProblems with ToolStrip control - ToolStripButtons flickering [modified] Pin
Yoav Ben Zvi21-Apr-08 19:49
Yoav Ben Zvi21-Apr-08 19:49 
GeneralRe: Problems with ToolStrip control - ToolStripButtons flickering Pin
Gopal.S22-Apr-08 0:30
Gopal.S22-Apr-08 0:30 
GeneralRe: Problems with ToolStrip control - ToolStripButtons flickering Pin
Yoav Ben Zvi22-Apr-08 19:30
Yoav Ben Zvi22-Apr-08 19:30 
GeneralReg Invoking Method of dll in Vb6 using C# Pin
Member 400849221-Apr-08 19:13
Member 400849221-Apr-08 19:13 
GeneralRe: Reg Invoking Method of dll in Vb6 using C# Pin
Christian Graus21-Apr-08 19:21
protectorChristian Graus21-Apr-08 19:21 
GeneralAJAX Dropdownlist Pin
Dev Motiramani21-Apr-08 18:57
Dev Motiramani21-Apr-08 18:57 
GeneralRe: AJAX Dropdownlist Pin
Christian Graus21-Apr-08 19:20
protectorChristian Graus21-Apr-08 19:20 

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.