Ahhh, it sounds like your code looks something like this:
csharp Code:
using System;
using System.
Collections;
namespace Foo
{ ArrayList names =
new ArrayList
();
class Bar
() { }}
Which isn't legal. As the second error states only a class, delegate, enum, interface or struct is permited to be declared in a namespace. Move this declaration
csharp Code:
ArrayList names =
new ArrayList
();
into the class
csharp Code:
class Bar
(){ ArrayList names =
new ArrayList
();
}
This should clear up the error you are recieving.
hth
-Doug
__________________
===============================================
Doug Parsons
Wrox online library:
Wrox Books 24 x 7
Did someone here help you? Click

on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================