D
David
Hi,
I want to be able to make a class only visible within the namespace, i.e.
only other classes within the namespace will have access to it.
I have tried putting a protected keyword against it. That doesn't work.
I have tried nesting it inside the class where I want to use it, this sort
of compiles, except some of my methods that rely on the class have
"Inconsistent accessibility:"
Here is an example...
public class Folders
{
class FolderChild
{
}
public static FolderChild[] GetFolders()
{
}
}
Basically, I don't want FolderChild to be visible to anything else except
Folders and its methods. How can I do that?
Thanks.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I want to be able to make a class only visible within the namespace, i.e.
only other classes within the namespace will have access to it.
I have tried putting a protected keyword against it. That doesn't work.
I have tried nesting it inside the class where I want to use it, this sort
of compiles, except some of my methods that rely on the class have
"Inconsistent accessibility:"
Here is an example...
public class Folders
{
class FolderChild
{
}
public static FolderChild[] GetFolders()
{
}
}
Basically, I don't want FolderChild to be visible to anything else except
Folders and its methods. How can I do that?
Thanks.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available