Brandon Bray [MSFT] wrote:
Edward Diener wrote: I don't follow the above paragraph. Are you saying that if I had a
#using statement for my assembly which has __nogc classes that it
would work without needing to #include the header file ?
No, the #using constitutes a forward declaration. A header file is
still needed to provide the class defintion.
Was my __declspec(dllexport) for my __nogc class upon building my assembly
and __declspec(dllimport) upon using my __nogc class unneeded, therefore,
since it was by default 'public' anyway ? Which compiler switch makes the
default 'private' for __nogc classes ? If I use that switch ( or IDE
setting ), could I not then use my
__declspec(dllexport)/__declspec(dllimport) technique to make select classes
'public', so to speak while retaining the option to have all other __nogc
classes private ?