473,385 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Example of TYPED INTERFACE ?

I am using extensively typed classes.

Now I would also need typed interfaces. Is it possible to define an
interface with a couple of types?

Do you have an example ? (a 3-line example would be fine).

Thank you,

-P

Jul 14 '07 #1
2 1410
I'm not sure what you need, but if you're asking if an interface can contain
types, they cannot in C#. They can contain types in VB however.
--
David Anton
www.tangiblesoftwaresolutions.com
Convert between VB, C#, and C++
Instant C#
Instant VB
Instant C++
C++ to C# Converter
C++ to VB Converter
"pamela fluente" wrote:
I am using extensively typed classes.

Now I would also need typed interfaces. Is it possible to define an
interface with a couple of types?

Do you have an example ? (a 3-line example would be fine).

Thank you,

-P

Jul 15 '07 #2
On 15 Lug, 04:28, David Anton <DavidAn...@discussions.microsoft.com>
wrote:
I'm not sure what you need, but if you're asking if an interface can contain
types, they cannot in C#. They can contain types in VB however.
--
David Antonwww.tangiblesoftwaresolutions.com
Convert between VB, C#, and C++
Instant C#
Instant VB
Instant C++
C++ to C# Converter
C++ to VB Converter

"pamela fluente" wrote:
I am using extensively typed classes.
Now I would also need typed interfaces. Is it possible to define an
interface with a couple of types?
Do you have an example ? (a 3-line example would be fine).
Thank you,
-P- Nascondi testo tra virgolette -

- Mostra testo tra virgolette -
thank you

Jul 16 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Cohagan | last post by:
I'm trying to figure out the "best" way to implement a strongly typed ArrayList. Using inheritance is one approach. It has the advantage that I only have to write overrides for the Add method and...
2
by: Vaap | last post by:
I am trying to get dataset working through IDbDataAdapter interface as my solution need to work with Sql Server and Oracle ODP. I am using different data provider factories and the code here only...
0
by: Dan Holmes | last post by:
I have created an interface (A) and also and interface for the collection (or dictionary) of A. I was going to have the implementation inherit from DictionaryBase but in a for each loop (VB) the...
7
by: Jeff | last post by:
I want to remote several strongly typed datasets and I don't want to distribute the assemblies. I wish to create interface assemblies for these datasets but I don't know where to start. I've...
0
by: Uchiha Jax | last post by:
When using a strongly typed dataset (generated from the Visual Studio IDE from an XSD file) and databinding I get a really odd error when binding to both a combox and a datetimepicker. I bind...
2
by: Ian Gore | last post by:
Hi, I'm relatively new to VB.NET so I'd be grateful if someone could point out what I don't understand here... 1) Creating a strongly typed collection by inheriting CollectionBase. This is...
8
by: MuZZy | last post by:
Hi, How do i implement a typed IList class? Visual Studio automatically generates template code for a IList, but for example indexer is of type 'object', but i need it of type 'MyType'. ...
4
by: Boris Yeltsin | last post by:
OK, on my Master Page I have a control: <a id="hypTabAccount" href="#" runat="server">Account</a> Now, in the code-behind (Root.master.vb) I can refer to it simply thus: ...
0
by: ManicQin | last post by:
Hello everyone and especially Kai-Uwe Bux A month ago I post a question in the same name of this one but I didnt managed to explain my question right, so people didn't understand me. Now when I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.