G
Guest
Sorry if this is a question that has been answered elsewhere. I did a search
and didn't find the answer I am looking for.
I am writing an ASP.NET app in VB.NET and am defining some classes in the
App_Code folder. I do not want the classes to be accessible from outside the
assembly, so I would like to declare them as Friend, or at least to declare
the Properties and Methods as Friend. However, if I make the class Friend, I
cannot see it from the code behind my web pages. It has to be declared
Public. Same thing with Properties.
Everything I read tells me that Friend Classes should be accessible from
everwhere in the project (assembly). Obviously I am missing something, but I
can't figure out what it might be.
Helpful comments would be most appreciated.
and didn't find the answer I am looking for.
I am writing an ASP.NET app in VB.NET and am defining some classes in the
App_Code folder. I do not want the classes to be accessible from outside the
assembly, so I would like to declare them as Friend, or at least to declare
the Properties and Methods as Friend. However, if I make the class Friend, I
cannot see it from the code behind my web pages. It has to be declared
Public. Same thing with Properties.
Everything I read tells me that Friend Classes should be accessible from
everwhere in the project (assembly). Obviously I am missing something, but I
can't figure out what it might be.
Helpful comments would be most appreciated.