What are the implications of using Generic types in .NET to store ArcObjects, such as ILayer, IField, etc?
The compiler throws me a warning when using these kind of values
public class Foo
{
private List<ILayer> fooLayers;
public List<ILayer> FooLayers
{
get { ... }
set { ... }
}
}
Here is the warning:
Warning 15 Type library exporter warning processing 'ArcMemorialCore.Topography.IMemorialDocument.set_ProfessionalsEnvolved(value), ArcMemorialCore'. Warning: Type library exporter encountered a generic type instance in a signature. Generic code may not be exported to COM. ArcMemorialCore
My concern is not only the warning's existence, but of good design practices, performance, etc.