Re: Is Class Synonymous with Type?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:1165394433.275278.102040@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Jeff Louie wrote:
Gary... There are many definitions for the word type. In C# I find the
definition of a type as a named generic interface to be a useful
definition. In a
nutshell a general interface is a particular set of signatures.

It strikes me as a less than useful definition when "interface" and
"generic" are already defined in C#. A definition which not only needs
more definitions in order to be useful, but those definitions are
overloads of *existing* definitions is likely to lead to confusion, I
suspect.

Actually, I found the definition rather compelling. Programmers use
"generic" and "interface" all the time without referring to C# features, and
have done for years. Saying we shouldn't use them in defining terms like
"type" is like saying we shouldn't use the term "is" because it has a
specific meaning in C#. :)

///ark


.



Relevant Pages

  • Re: Is Class Synonymous with Type?
    ... the term "is" has the same semantics everywhere. ... Dave Sexton ... definition of a type as a named generic interface to be a useful ... nutshell a general interface is a particular set of signatures. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is Class Synonymous with Type?
    ... definition of a type as a named generic interface to be a useful definition. ... thought it was worth pointing out how potentially confusing it is.) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Why use Interfaces?
    ... method and property signatures. ... will have a DrawMe method and can override that somehow to draw their ... Using an interface however, you can create a system that will "morph" the ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Why use Interfaces?
    ... method and property signatures. ... will have a DrawMe method and can override that somehow to draw their ... Using an interface however, you can create a system that will "morph" the ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Is Class Synonymous with Type?
    ... definition of a type as a named generic interface to be a useful ... nutshell a general interface is a particular set of signatures. ...
    (microsoft.public.dotnet.languages.csharp)