Interface -- C# thing or .NET thing

  • Thread starter Thread starter gz
  • Start date Start date
G

gz

Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?

Thanks,
gz
 
Hi,

gz said:
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?

Well interfaces are defined ALL over the framework. That only should
indicate that they are a .NET "thing" don't you think?
 
gz said:
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?

The .NET runtime enforces the restriction of multiple inheritance to
interfaces.
 
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?

Thanks,
gz

Interfaces are an integral part of the common type system and so is
defined at level even lower than the runtime. Read the Common
Language Infrastructure specification (ECMA-335) for more information.
 
Interfaces are an integral part of the common type system and so is
defined at level even lower than the runtime. Read the Common
Language Infrastructure specification (ECMA-335) for more information.

I see.

Thanks everyone for answering!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top