Click here to Skip to main content
15,798,592 members
Home / Discussions / C#
   

C#

 
GeneralRe: MQSeries from .NET Pin
SimonS17-Sep-02 6:27
SimonS17-Sep-02 6:27 
GeneralRe: MQSeries from .NET Pin
leppie17-Sep-02 8:24
leppie17-Sep-02 8:24 
GeneralRe: MQSeries from .NET Pin
Gaul25-Sep-02 13:05
Gaul25-Sep-02 13:05 
QuestionHow to remove null from arraylist? Pin
leppie17-Sep-02 1:53
leppie17-Sep-02 1:53 
AnswerRe: How to remove null from arraylist? Pin
jan larsen17-Sep-02 2:18
jan larsen17-Sep-02 2:18 
GeneralRe: How to remove null from arraylist? Pin
leppie17-Sep-02 2:31
leppie17-Sep-02 2:31 
GeneralRe: How to remove null from arraylist? Pin
jan larsen17-Sep-02 4:45
jan larsen17-Sep-02 4:45 
GeneralRe: How to remove null from arraylist? Pin
leppie17-Sep-02 5:26
leppie17-Sep-02 5:26 
jan larsen wrote:
You are making some kind of mistake when you are trying to remove the item, try this:

Nope, i double checked...

This is my code:

for (int i = 0; i < list.Count; i++) // at this point Count includes the null at pos 3;
{
  if (list[i] == null) { list.RemoveAt(i); i--; continue;} //on the next loop, list[i] still == null
  //carry on doing the other stuff
}


I must also state that the arraylist get serialized/deserialized with the BinaryFormatter. Not sure if that can have an effect. Im going try recreate it, seeing that I had to "fix" it quickly...
GeneralRe: How to remove null from arraylist? Pin
leppie17-Sep-02 5:35
leppie17-Sep-02 5:35 
GeneralRe: How to remove null from arraylist? Pin
Ryan Cromwell17-Sep-02 4:12
Ryan Cromwell17-Sep-02 4:12 
GeneralGotDotNet workspaces :) Pin
leppie17-Sep-02 0:30
leppie17-Sep-02 0:30 
GeneralRe: GotDotNet workspaces :) Pin
Ray Cassick17-Sep-02 11:07
Ray Cassick17-Sep-02 11:07 
GeneralRe: GotDotNet workspaces :) Pin
leppie17-Sep-02 11:18
leppie17-Sep-02 11:18 
GeneralRe: GotDotNet workspaces :) Pin
Paul Watson17-Sep-02 23:00
sitebuilderPaul Watson17-Sep-02 23:00 
GeneralRe: GotDotNet workspaces :) Pin
leppie18-Sep-02 2:57
leppie18-Sep-02 2:57 
GeneralConsuming Web Services... Pin
Matt Philmon16-Sep-02 12:16
Matt Philmon16-Sep-02 12:16 
GeneralRe: Consuming Web Services... Pin
leppie16-Sep-02 12:26
leppie16-Sep-02 12:26 
GeneralRe: Consuming Web Services... Pin
Paul Watson17-Sep-02 1:05
sitebuilderPaul Watson17-Sep-02 1:05 
GeneralRe: Consuming Web Services... Pin
Matt Philmon17-Sep-02 6:35
Matt Philmon17-Sep-02 6:35 
GeneralPrivileges [again] Pin
Nnamdi Onyeyiri16-Sep-02 11:24
Nnamdi Onyeyiri16-Sep-02 11:24 
GeneralRe: Privileges [again] Pin
leppie16-Sep-02 11:51
leppie16-Sep-02 11:51 
GeneralRe: Privileges [again] Pin
Nnamdi Onyeyiri16-Sep-02 12:32
Nnamdi Onyeyiri16-Sep-02 12:32 
GeneralRe: Privileges [again] Pin
leppie16-Sep-02 12:54
leppie16-Sep-02 12:54 
GeneralRe: Privileges [again] Pin
leppie16-Sep-02 13:12
leppie16-Sep-02 13:12 
Questionhow to implement SHFileOperation api call in c# Pin
waleed riaz16-Sep-02 2:34
waleed riaz16-Sep-02 2:34 

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.