473,809 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1807
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/csref/html/vcrefValueTypes .ht
m

in VS.Net 2003 help.

"Steph" <steph@nospampl ease> wrote in message
news:eP******** ******@TK2MSFTN GP12.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@nospampl ease> wrote in message
news:eP******** ********@TK2MSF TNGP12.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@nospampl ease> wrote in message
news:eP******** ********@TK2MSF TNGP12.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@nospampl ease> 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.co m>
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.co m> a écrit dans le message de news:
MP************* ***********@msn ews.microsoft.c om...
Steph <steph@nospampl ease> 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.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #6
Steph <steph@nospampl ease> 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.co m>
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.co m> a écrit dans le message de news:
MP************* ***********@msn ews.microsoft.c om...
Steph <steph@nospampl ease> 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.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #8
Steph <steph@nospampl ease> 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.co m>
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.co m> a écrit dans le message de news:
MP************* ***********@msn ews.microsoft.c om...
Steph <steph@nospampl ease> 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.co m>
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
4543
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, what does the acronym stand for? Thanks, </dib> John Dibling Witty banter omitted for your protection
5
3456
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++ standard namespace. std::uint8_t instead of uint8_t std::uint32_t instead of uint32_t .... I don't think the use of std:: is correct. Nowhere are these types
8
2347
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 least 2 bytes, and a long at least 4 bytes. The rules also define a size precedence to the types. In Stroustrup's book, it says that all type sizes are multiples of char, "so by definition the size of a char is 1." According to the rules, that...
188
17471
by: infobahn | last post by:
printf("%p\n", (void *)0); /* UB, or not? Please explain your answer. */
5
2102
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 object, is still created on the stack, I would say, so I don't understand this inline business. Apart from the fact that it is my understanding that "inline" as it exists in C++ doesn't exist in C#. Could someone please shed some light on this...
58
3489
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 have said wrong. Keep in mind that this is a tutorial, and I donot want to overwhelm the reader with little details. -------------------------------------------------------------------------* Types
14
2314
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 whateverkeithsaysfor99compliance #define whateverkeithsays for99compliance int main(void { struct foo
159
6355
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
2390
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 expressions
55
4001
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 built-in-like behavior for objects of class type. That leads to the "necessity" for the exception machinery so that errors from constructors can be handled. Is all that complexity worth it just to get built-in-like behavior from class objects? Maybe a...
0
9721
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9602
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10383
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.