Most likely you omitted class visibility identifiers (you know, all those public
, protected
and private
stuff). By default, if I'm not mistaking, if you omit class visibility declaration, C# assumes it's internal
(and there's a good question on SO about it), so it's not visible to your calling method.
The simpliest way is to explicitly mark those class as public, e.g.
public class YOURCLASSNAME {
//other stuff you have
}
But you should consider if it makes sense in your case to make the class public. Encapsulation OOP principle means (to some extent) that you must avoid declaring everything public
.
Anyway, some code samples could make this question an answerable question. Now it's just guessing and psychic debugging.