Re: IDispatch definition in C#
- From: Phil Coveney <PhilCoveney@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 4 Sep 2005 12:08:04 -0700
Mattias,
>Why do you need it? Why not simply
> private object m_Server;
Fair enough. In fact, that's what I have been doing to make progress on
this project while I am resolving this. And, if this is Microft's intention
for C# developers, I guess that's what I'll do.
But two things trouble me about this.
First, (I think) it implies that I store all standard COM interface
references in object variables. It seems to me unnecessarily hiding
information about the variable's type. One could extend this logic, I
suppose, and note that I could store integer values in object variables,
which I think we can agree would not be good practice.
Second, since I can store references to .NET interfaces, this (I think)
implies I would develop my class distinguishing between standard COM
interfaces, and typelib-imported + non-COM iterfaces. If I change the
provider of a COM interface service from a COM to a non-COM service, does it
mean I change how I store the reference?
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. I am just trying to
understand its rationale.
Thanks for your help,
Phil Coveney
>
.
- Follow-Ups:
- Re: IDispatch definition in C#
- From: Mattias Sjögren
- Re: IDispatch definition in C#
- References:
- IDispatch definition in C#
- From: Phil Coveney
- Re: IDispatch definition in C#
- From: Mattias Sjögren
- IDispatch definition in C#
- Prev by Date: Re: Intelisense Question
- Next by Date: How to transfer int to bit string
- Previous by thread: Re: IDispatch definition in C#
- Next by thread: Re: IDispatch definition in C#
- Index(es):
Relevant Pages
|