Re: Is a TypeDesc a boxed value?

Jan Kotas <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.rotor
Message-ID <DD12668590C9274E9B2226FDBD02B98807A45BC3@red-msg-08.redmond.corp.microsoft.com>
TypeDesc can represent arrays, byrefs, pointers or function types. I
don't believe they can represent a boxed value type.

I may be helpful for you to know that the MethodTable is same for both
boxed and unboxed value types. For example, to determine whether an
objRef contains a boxed value type, you simply check whether it contains
a value type: objRef->GetMethodTable()->IsValueClass().

-Jan

This posting is provided "AS IS" with no warranties, and confers no
rights.

-----Original Message-----
From: Discussion of the Rotor Shared Source CLI implementation
[mailto:[email protected]] On Behalf Of John Locke
Sent: Friday, June 27, 2003 3:11 PM
To: [email protected]
Subject: [DOTNET-ROTOR] Is a TypeDesc a boxed value?

If I have a TypeDesc object, how do I determine
whether that represents a boxed value type?

John

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.