473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

get all types

Hello,

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

Any idea ?

Thanks

Nov 16 '05 #1
9 1789
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/csref/html/vcrefValueTypes.ht
m

in VS.Net 2003 help.

"Steph" <steph@nospamplease> wrote in message
news:eP**************@TK2MSFTNGP12.phx.gbl...
Hello,

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

Any idea ?

Thanks

Nov 16 '05 #2

"Steph" <steph@nospamplease> wrote in message
news:eP****************@TK2MSFTNGP12.phx.gbl...
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?
Nov 16 '05 #3
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

"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> a écrit dans le
message de news: eM**************@TK2MSFTNGP15.phx.gbl...

"Steph" <steph@nospamplease> wrote in message
news:eP****************@TK2MSFTNGP12.phx.gbl...
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?

Nov 16 '05 #4
Steph <steph@nospamplease> wrote:
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#.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #5
Thanks,

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

Thanks for your help.

"Jon Skeet [C# MVP]" <sk***@pobox.com> a écrit dans le message de news:
MP************************@msnews.microsoft.com...
Steph <steph@nospamplease> wrote:
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#.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #6
Steph <steph@nospamplease> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #7
Yes I want include it in my list. My question is how do it ?

Thanks

"Jon Skeet [C# MVP]" <sk***@pobox.com> a écrit dans le message de news:
MP************************@msnews.microsoft.com...
Steph <steph@nospamplease> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #8
Steph <steph@nospamplease> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #9
Ok,

thanks for your time :-)
"Jon Skeet [C# MVP]" <sk***@pobox.com> a écrit dans le message de news:
MP************************@msnews.microsoft.com...
Steph <steph@nospamplease> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Dibling | last post by:
Could somebody please direct me to a location in the standard where POD types are defined? That is, where in the standard is it defined what attributes a POD type has that a non-POD hasn't? Also,...
5
by: Andy Skypeck | last post by:
I am looking for some validation against a dubious coding practice that prevails where I work. C types defined in types.h (Linux) or stdint.h (Windows, C99?) are used as if they belong to the C++...
8
by: Shailesh | last post by:
One problem I've been wrestling with for a long time is how to use the C++ integral data types, vis-a-vis their size. The C++ rules guarantee that a char is at least 1 bytes, a short and int at...
188
by: infobahn | last post by:
printf("%p\n", (void *)0); /* UB, or not? Please explain your answer. */
5
by: Zach | last post by:
When it is being said that, "value types are created on the stack or inline as part of an object". If a value type is created in an object, and that object is being called, the value type in that...
58
by: jacob navia | last post by:
Hi people I have been working again in my tutorial, and I have finished the "types" chapter. If you feel like "jacob bashing" this is the occasion! I am asking for criticisms, or for things I may...
14
by: Lane Straatman | last post by:
I would like to write a 'struct'. I have a library that is all but completely inappropriate for this task. So I'm looking for C code that fills in the gaps between: #undef...
159
by: Bob Timpkinson | last post by:
Hi, I have a 32-bit machine... Is there anyway I can get gcc to use the following integer sizes? char: 8 bits short: 16 bits int: 32 bits long: 64 bits long long: 128 bits
3
by: sophia.agnes | last post by:
Dear all, what are the major expression types in c? i have seen the following types of expressions 1) constant expressions 2) integral expressions 3) float expressions 4) pointer...
55
by: tonytech08 | last post by:
How valuable is it that class objects behave like built-in types? I appears that the whole "constructor doesn't return a value because they are called by the compiler" thing is to enable...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.