Your
Fileinfo
class does not have any accessibility defined ; so its default accessibility is set to
internal
. That means that this class is usable only from the library (or the executable) that defines it. You cannot use this class from a foreign assembly.
So when you set it as a parameter in the
prepareCluster
method, which is defined as public, the compiler warns you about the fact that, despite the method being public, you won't be able to use it from a foreign assembly as one of the parameters is of an internal type, which will not be accessible.
Solution : mark your
Fileinfo
class as public:
public class Fileinfo
{
}
Compiler should not complain after that. Hope this helps.