By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,695 Members | 1,348 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,695 IT Pros & Developers. It's quick & easy.

What ONE feature would you want in C# and VS?

P: n/a
If you had your wish and could have one (but only one) feature added to
C#, what would you ask for?

Second question. Same as the first question, but if the feature was for
Visual Studio .NET.

Nov 17 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
c# - multiple inheritance
vs - just fix the bugs please

"Johann Blake" <jo*********@yahoo.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
If you had your wish and could have one (but only one) feature added to
C#, what would you ask for?

Second question. Same as the first question, but if the feature was for
Visual Studio .NET.

Nov 17 '05 #2

P: n/a
"Radek Cerny" <ra*********@c1s.com.au> wrote in message
news:eh**************@tk2msftngp13.phx.gbl...
c# - multiple inheritance


You might find some of these interesting...
http://www.dotnetspider.com/Question324.aspx
http://www.codeproject.com/csharp/smip.asp
http://msdn.microsoft.com/library/de...interinher.asp
http://forum.java.sun.com/thread.jsp...sageID=3776224
Nov 17 '05 #3

P: n/a
Why do you feel multiple inheritance is something important? What could
you give as a real-world example where some object inherits from 2
totally unrelated entities? Actually I just thought of one. The
tasmanian wolf! It is neither a wolf (or even from a dog family) nor is
it a cat, yet it is a masuipial and can behave like a kangaroo (no
kidding, it can hop on its hind legs). So there you go, a tasmanian wolf
object that inherits from a cat, a dog and kangaroo.

Best Regards
Johann Blake
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #4

P: n/a
Why do you feel multiple inheritance is something important? What could
you give as a real-world example where some object inherits from 2
totally unrelated entities? Actually I just thought of one. The
tasmanian wolf! It is neither a wolf (or even from a dog family) nor is
it a cat, yet it is a masuipial and can behave like a kangaroo (no
kidding, it can hop on its hind legs). So there you go, a tasmanian wolf
object that inherits from a cat, a dog and kangaroo.
Best Regards
Johann Blake

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #5

P: n/a
Johann,

there was a signifcant thread about this recently - here's a quick cut/paste
job from my posts:

I had MI in a previous world (Gupta/Centura 4GL)
and I miss it dearly. Mind you I think that all in all, c# is pretty damn
good, but I can make several real cases where MI is the correct design/model
and would save a fair amount of duplication. I have pretty much given up
hope on ever seeing it in the CLR tho.

In my architecture, I keep 100% separation of business functionality from
presentation layer (Web Services connect a rich,thin client to functional
server objects). So I have two separate cases. Server-side, I have more
control over, as I do not use Datasets or such - my objects are built from
the ground up.
However, on the client, I must provide all controls that are capable of
talking my specific Web Service schema to the server, but I must inherit
from the standard WinForms controls. I have no choice but to replicate code
in a checkbox, textbox, radio button class etc. If I had MI, I would have
an abstract class that understood my schema, and all the window classes
would inherit from that as well as the .NET supplied standard Windows
classes. For now, I can only implement an interface, but there is much code
that is identical across controls.
Server-side, I would still like MI, but learned to live without it.
Philosophically, I can not understand those who do not appreciate MI; used
correctly, you can normalise your code base like you would normalise your
database.

Radek

"Johann Blake" <jo*********@yahoo.com> wrote in message
news:eR**************@TK2MSFTNGP12.phx.gbl...
Why do you feel multiple inheritance is something important? What could
you give as a real-world example where some object inherits from 2
totally unrelated entities? Actually I just thought of one. The
tasmanian wolf! It is neither a wolf (or even from a dog family) nor is
it a cat, yet it is a masuipial and can behave like a kangaroo (no
kidding, it can hop on its hind legs). So there you go, a tasmanian wolf
object that inherits from a cat, a dog and kangaroo.

Best Regards
Johann Blake
*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #6

P: n/a
Thanks, but been there, done that. I grew up having MI, and so I design
using MI. Unfortunately, I can not implement MI in .NET - the CLR will
probably never support it. I can deal with that - the OP was granting me a
wish.

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O0**************@TK2MSFTNGP09.phx.gbl...
"Radek Cerny" <ra*********@c1s.com.au> wrote in message
news:eh**************@tk2msftngp13.phx.gbl...
c# - multiple inheritance


You might find some of these interesting...
http://www.dotnetspider.com/Question324.aspx
http://www.codeproject.com/csharp/smip.asp
http://msdn.microsoft.com/library/de...interinher.asp
http://forum.java.sun.com/thread.jsp...sageID=3776224

Nov 17 '05 #7

P: n/a
Radek,
Have you looked at Eiffel.NET?

It supports multiple inheritance on .NET.

http://www.eiffel.com/

Hope this helps
Jay

"Radek Cerny" <ra*********@c1s.com.au> wrote in message
news:uQ**************@tk2msftngp13.phx.gbl...
| Thanks, but been there, done that. I grew up having MI, and so I design
| using MI. Unfortunately, I can not implement MI in .NET - the CLR will
| probably never support it. I can deal with that - the OP was granting me
a
| wish.
|
| "Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
| news:O0**************@TK2MSFTNGP09.phx.gbl...
| > "Radek Cerny" <ra*********@c1s.com.au> wrote in message
| > news:eh**************@tk2msftngp13.phx.gbl...
| >
| >> c# - multiple inheritance
| >
| > You might find some of these interesting...
| > http://www.dotnetspider.com/Question324.aspx
| > http://www.codeproject.com/csharp/smip.asp
| >
http://msdn.microsoft.com/library/de...interinher.asp
| > http://forum.java.sun.com/thread.jsp...sageID=3776224
| >
|
|
Nov 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.