Re: Generics Question




1. Although I get the relative simplicity of Generics over using interfaces
is it true that I *could* do what Generics offers with interfaces?

No, regular (non-generic) interfaces doesn't provide a way for you to
parameterize types.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.



Relevant Pages

  • Re: How to add IDL to assembly?
    ... I assume that this attiribute will work as regular registration, ... Mattias Sjögren wrote: ... interface IMyInterface ...
    (microsoft.public.dotnet.framework.interop)
  • Re: problem System.Single[*] -> System.Single[]
    ... That probably indicates that the array has a non-zero lower bound, ... which makes in incompatible with a regular Single[]. ... Mattias Sjögren mattias @ mvps.org ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Interfaces and Constructors
    ... Interfaces themself can't be ... provide such constructors doesn't make much sense either, ... Mattias Sjögren mattias @ mvps.org ... Please reply only to the newsgroup. ...
    (microsoft.public.dotnet.general)
  • Re: Interop (c#, VB6) problem
    ... >Thanks Mattias. ... I assigned fixed GUIDs to the interfaces and classes. ... it becomes the LIBID for the typelib. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Retrieving a members SizeConst value
    ... As of 2.0 you should just have to use regular ... Reflection and look for the MarshalAs attribute. ... Mattias Sjögren mattias @ mvps.org ... Please reply only to the newsgroup. ...
    (microsoft.public.dotnet.framework.interop)

Loading