473,503 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IDE - support for use of interfaces

Hi!

When I want to implement a new class on base of an existing interface I
always have to switch between window of new class and the interface
definition.

Is there an easier way? Any support by IDE?
E.g. a command to add all required methods/properties to the class as soon
as there is a reference to an interface?

Thanks!
Nov 19 '05 #1
2 895
Frank Esser wrote:
Hi!

When I want to implement a new class on base of an existing interface I
always have to switch between window of new class and the interface
definition.

Is there an easier way? Any support by IDE?
E.g. a command to add all required methods/properties to the class as soon
as there is a reference to an interface?

Thanks!


That is standard functionality in VS. As soon as I finish typing
the ": IInterface", VS shows a message "press TAB to add methods".

But: that interface should be known to your new class. If your interface
is in a different project, you should have built that and referenced
in the project of the new class. Also you need either a "using"
clause or use a namespace path, so VS has a chance to know what you mean.

If you *change* the interface, you have to change the class by hand
(AFAIK).

--
Hans Kesting
Nov 19 '05 #2
Hello Frank,

Hans's method works. I also wanted to let you know that JetBrains also makes
a tool called ReSharper [1], which provides a lot of IDE usability enhancements
such as easier interface implementations and overriding.

[1] http://www.jetbrains.com/resharper/

--
Matt Berther
http://www.mattberther.com
Hi!

When I want to implement a new class on base of an existing interface
I always have to switch between window of new class and the interface
definition.

Is there an easier way? Any support by IDE?
E.g. a command to add all required methods/properties to the class as
soon
as there is a reference to an interface?
Thanks!

Nov 19 '05 #3

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

Similar topics

5
1366
by: Steve | last post by:
Is it possible to design interfaces that classes must implement in Python? If it's not, is this functionality planned at all for the future? Thanks, Steve
0
255
by: Jules | last post by:
I know that Office XP provides a PIA (Primary Interoperabiltiy Assembly) so that C# and VB.NET Applications can call into the Office COM based interfaces. But programming in C# is a real pain,...
4
2557
by: dalewz | last post by:
Hi, Could sb kindly answer my following questions: Plan: I am trying to find a language to build a GUI to communicate with our device via serial port. Questions: 1. which language (VC++...
3
2220
by: Kevin | last post by:
Is it possible to develop an Active Document Full Server or a Container application using C#? Thanks, Kevin.
22
23315
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
2
2116
by: Claus Konrad | last post by:
Hi Anybody got an impression whether .NET 2.0 supports USB ports? I know that the Serial (COM) and parallel ports (LPT1) are included, but how is the story on USB ports? /Claus
3
2115
by: Robin Tucker | last post by:
It seems that all of the interfaces, such as IDataObject etc. from basic OLE are no longer supported in .NET, although they are implemented (differently). I have an OLE object type and am having...
2
1486
by: Siegfried Heintze | last post by:
In 2004 (approximately) MS Tech support explained that while there was limited support for native mode Active X controls in a few cases (like IE), ActiveX controls should be all native code...
0
917
by: Matt | last post by:
Company has switched to MS Team Foundation Server from VSS. Need a programmers text editor that interfaces with TFS or SCC providers to visually provide checkin/out status on project files. So far,...
15
4191
by: RobG | last post by:
When using createEvent, an eventType parameter must be provided as an argument. This can be one of those specified in DOM 2 or 3 Events, or it might be a proprietary eventType. My problem is...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.