well let me make sure I clearly understand your point:
I am quoting following lines from .net Components Book from Juval Lowy Page:
544
"The abstract class Type, defined in the System namespace, is an abstraction
of a .NET CLR type. Every .NET type, be it a .NET-provided type(from value
types such as integers and enums to classes and interfaces) or a
developer-defined type, has a corresponding unique Type value.
The canonical base class of any .NET type is System.Object. ..."
If I am understanding it right, you mentioned in your second posting, "All
types are not. All classes are." to the original question "whay all types in
..net are inherited from System.Object ?"
If we look at MSDN it shows
(
http://msdn.microsoft.com/library/de...classtopic.asp) it shows:
System.Object
System.ValueType
System.Int32
By looking at the above text, how would you define the relationship between
System.Object->System.ValueType->System.Int32 ?
"Kevin Spencer" wrote:
> Let me put it first in terms NOT .Net: A square is a rectangle, but a
> rectangle is not necessarily a square. A rectangle is only a square if all
> of its sides are of the same length. Similarly, a class is a type, but a
> type is not necessarily a class. Value types, such as integers,
> enumerations, and structs, are not classes.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> Professional Numbskull
>
> Show me your certification without works,
> and I'll show my certification
> *by* my works.
>
> "Arif Khan" <(E-Mail Removed)> wrote in message
> news:2A173321-F0EC-475B-ABCE-(E-Mail Removed)...
> > speaking in terms .net, how would you differentiate between a type and a
> > class ?
> >
> > "Kevin Spencer" wrote:
> >
> >> All types are not. All classes are. That is because all classes have the
> >> same underlying properties at their core. It is a principle of OOP
> >> (inheritance).
> >>
> >> --
> >> HTH,
> >>
> >> Kevin Spencer
> >> Microsoft MVP
> >> Professional Numbskull
> >>
> >> Show me your certification without works,
> >> and I'll show my certification
> >> *by* my works.
> >>
> >> <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >> > whay all types in .net are inherited from System.Object ?
> >> >
> >>
> >>
> >>
>
>
>