Content deleted Content added
Line 130:
:Find a reliable source which says "no, C# does not have a unified type system". So far there are only sources supporting that C# has a unified type system. You are correct that the the native-oriented type "pointer" does not derive from ''object''. But the pointer type is not part of the common type system of C#. It is a type to which you only gain access when you run the ''extended'' version of the language which you get access to by compiling with the '''unsafe''' option. But it is really down to reliable sources. Remember, Wikipedia is about [[WP:VERIFY|verifiability]]. --[[User:Useerup|Useerup]] ([[User talk:Useerup|talk]]) 07:07, 2 March 2012 (UTC)
::I found http://msdn.microsoft.com/en-us/library/2hf02550(VS.71).aspx which says that the common type system supports value types and reference types. Reference types can be self-describing types, pointer types, or interface types. So pointers ARE a part of CTS. And pointers are just pointing to an object, they are not objects itself, they are simply an address of an object.
::Anyway, if you are concerned using unsafe context, try to compile this: <code>Console.WriteLine((object)default(TypedReference));</code>
::.NET Framework has exceptions from its rules, and these exceptions makes statement ''“Every type is deriving from/can be converted to object.”'' false. If Microsoft wrote ''“All types derive from the System.Object base type.”'' it should also write ''”Pointers are no types.”'' but it didn’t. [[Special:Contributions/194.54.20.58|194.54.20.58]] ([[User talk:194.54.20.58|talk]]) 07:47, 2 March 2012 (UTC)
== Contradiction ==
|