Article View: borland.public.csharpbuilder.language.csharp
Article #658Re: Interface querying and dotNet/C# interfaces
From: Joanna Carter (TeamB)
Date: Fri, 17 Sep 2004 05:28
Date: Fri, 17 Sep 2004 05:28
29 lines
1659 bytes
1659 bytes
"Theo Bebekis" <teo@thinx.gr> a οΏ½crit dans le message de news: 41496a14$1@newsgroups.borland.com... > Is there any such notion to dotNet interfaces. > I know that interface querying works in Delphi's interfaces because of the > presence of the GUID and no GUIDs in dotNEt. Although you do not have to use GUIDs in .NET they are still used for COM interop. Having said that, querying for interfaces does not require GUIDs and is accomplished in a similar manner to Delphi for Win32. e.g. IThing t = new Thing(); IOther o = t as IOther; if (o != null) // t supports IOther Joanna -- Joanna Carter (TeamB) Consultant Software Engineer TeamBUG support for UK-BUG TeamMM support for ModelMaker
Technical Details
Message-ID:
<414a7628$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41496a14$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,4972df4d3d933b7c X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII From: "Joanna Carter \(TeamB\)" <joannac@btinternetxx.com> Newsgroups: borland.public.csharpbuilder.language.csharp References: <41496a14$1@newsgroups.borland.com> Subject: Re: Interface querying and dotNet/C# interfaces Date: Thu, 16 Sep 2004 22:28:41 -0700 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 206.107.212.98 Message-ID: <414a7628$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095398952 206.107.212.98 (16 Sep 2004 22:29:12 -0700) X-Authenticated-User: jcarter Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail