Re: IDispatch definition in C#
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Mon, 05 Sep 2005 06:17:55 +0200
Phil,
>t seems to me unnecessarily hiding
>information about the variable's type.
Unless you're going to use any type specific functionality (ie
IDispatch methods) I don't see that as a problem.
> OK, I'm not trying to start a deep philosophy discussion. It just seems
>strange that Microsoft would thoughtfully prevent the definition of its core
>interfaces from being visible to .NET class designers.
They don't prevent it, you can declare and use IDispatch if you really
have a reason to. If you do, the field declaration becomes
private IDispatch m_Server;
(not IDispatch*).
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- Follow-Ups:
- Re: IDispatch definition in C#
- From: Phil Coveney
- Re: IDispatch definition in C#
- References:
- IDispatch definition in C#
- From: Phil Coveney
- Re: IDispatch definition in C#
- From: Mattias Sjögren
- Re: IDispatch definition in C#
- From: Phil Coveney
- IDispatch definition in C#
- Prev by Date: RE: Creating a realtime interactive application
- Next by Date: ASP.Net SqlCommand SqlDataAdapter
- Previous by thread: Re: IDispatch definition in C#
- Next by thread: Re: IDispatch definition in C#
- Index(es):
Relevant Pages
|