Allaoua, DS> It seems that via Reflection I get that the array type DS> SomeClass[] has public visibility. I would expect it to have DS> the same visibility as its element type. Any ideas how this DS> can happen?
AC> SomeClass is private by default. It does not inherit the AC> scope of the class. AC> You must specify "public" to the array. AC> Personally I define the scope of all my variables just after AC> the class definition. I'm afraid you did not understand the issue the OP was describing. It did not relate to the scope of *variables*, but to the scope of types generated by the array type constructor. Reflection resolves this scope as public, which seems strange, because one would expect the scope to depend on the scope of the type argument. Regards, Stefan =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com