POV-Ray : Newsgroups : povray.off-topic : Generics annoyance : Re: Generics annoyance Server Time
4 Sep 2024 13:19:26 EDT (-0400)
  Re: Generics annoyance  
From: clipka
Date: 13 Apr 2010 17:47:08
Message: <4bc4e65c$1@news.povray.org>
Am 13.04.2010 22:46, schrieb Warp:

>    If C# offered multiple inheritance (I don't know if it does), then you
> could inherit all the objects you are using from GameComponent and your
> own "base class", which is what the container then contains.
>
>    (Of course this solution wouldn't help if you have to store objects
> which have been eg. instantiated by the library framework itself because
> those would not have been inherited from your "base class".)

I guess the typical C# approach to this type of problem would be wrapper 
classes, which IIRC are not too difficult to write in C#. Such wrappers 
could then just implement a common interface you intend to support.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.