Hello,
I am searching for the best way to get all base types in framework (int,
string, float...).
Any idea ?
Thanks 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
"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?
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?
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
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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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,...
|
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++...
|
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...
|
by: infobahn |
last post by:
printf("%p\n", (void *)0); /* UB, or not? Please explain your answer. */
|
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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,...
|
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...
|
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...
|
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...
| |