Ignacio,
The generic class is a small utility class that I use in bigger classes that
are public members of a C# dll.
It is maked as public.
If I mark the generic class as private I get a compiler error:
Namespace elements cannot be explicitly declared as private, protected, or
protected internal
I have not tryed to move the generic glass outside the namespace since I
prefere to keep all my code inside namespace's
If I mark the generic class as internal I get a large number of compiler
errors:
Inconsistent accessibility: field type 'Utility.Array1D<double>' is less
accessible than field 'BookKeeping.Phases_Base.Composition'
Torben
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:%2***************@TK2MSFTNGP06.phx.gbl...
Hi,
How did you mark your generic class?
What if you make them private or internal ?
--
Ignacio Machin
machin AT laceupsolutions com
"Torben Laursen" <To****@newsgroups.nospamwrote in message
news:O2*************@TK2MSFTNGP06.phx.gbl...
>>I am writing a COM in C# using visual studio 2005 and VSTO.
Inside the code I use some support classes that are generic but they are
not used in the inferface of the COM.
However I still get a number of warnings from the compiler like:
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Mi crosoft.Common.targets :
warning : Type library exporter warning processing 'Utility.Array1D`1,
Test2003'. Warning: Type library exporter encountered a generic type.
Generic classes may not be exposed to COM."
Is there a way to hide these warnings?
Torben