get all types

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

Hello,

I am searching for the best way to get all base types in framework (int,
string, float...).

Any idea ?

Thanks
 
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/csref/html/vcrefValueTypes.ht
m

in VS.Net 2003 help.
 
Steph said:
Hello,

I am searching for the best way to get all base types in framework (int,
string, float...).

How do you define base types? Do you mean just the C# builtin types or
something else?
 
Yes, I mean C# builtin types. I need to list and add them on an ArrayList. I
can do this manually but I thnik there is another solution.

thanks
 
Steph said:
Yes, I mean C# builtin types. I need to list and add them on an ArrayList. I
can do this manually but I thnik there is another solution.

Well, there's the TypeCode enumeration - but that include DateTime and
DBNull.

Do you want to include Decimal, by the way? It's not a primitive type
as far as the CLR is concerned, even though it has its own "shorthand"
in C#.
 
Thanks,

TypeCode is exactly that I am searching. any ideau about Decimal ?

Thanks for your help.
 
Steph said:
TypeCode is exactly that I am searching. any ideau about Decimal ?

What do you mean by "any ideas about Decimal"? Only you know whether or
not you want to include it in your list.
 
Steph said:
Yes I want include it in my list. My question is how do it ?

Well, it's already in the TypeCode enumeration, so if you're using
that, you're fine.
 
Back
Top