Click to See Complete Forum and Search --> : Structures Question(s)??
mpSmooth
Mar 2nd, 2002, 11:07 AM
Are the .Net primitive data types classes or structures?? Also, is a structure considered an object? Can you derive another structure from another structures? Sorry for so many questions, but my book is unclear about this topic.
Shawn N
Mar 2nd, 2002, 04:08 PM
I don't have an answer but I found this on MSDN.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/replaceapicalls.asp
Cander
Mar 4th, 2002, 09:12 AM
the data types are class objects...everything in .NET is treated as such.
i believe yes you should be able to derive a struct from a struct.
Bananafish
Mar 4th, 2002, 09:19 AM
The type hierarchy for .net starts off with "object" at the top, under which is
Object
String (note, not a primitive type)
Array
ValueType
PrimitiveTypes
Enum
Structure
Exception
Delegate
Multicast Delegate
Class
gijsj
Mar 4th, 2002, 11:20 AM
Primitive datatypes are value types (like structs) not reference types (like classes).
And a struct can't be derived from another struct !
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.