Thread: Target & Effect
View Single Post
Old 05-11-2008, 06:44 PM   #5 (permalink)
Lokai
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,422
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Also, since we created a new collection, it is probably best if we free up the resources associated with it using the built in "Free()" method.

After this:

Code:

foreach (Mobile m in mobiles)
{
m.SendMessage("im Mobile in range 1");
}
Add this:

Code:
 
mobiles.Free();
Lokai is offline   Reply With Quote