Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jan 17th, 2007, 8:28 AM   #1
jonyzz
Programmer
 
jonyzz's Avatar
 
Join Date: Aug 2005
Location: null
Posts: 40
Rep Power: 0 jonyzz is on a distinguished road
Difference between double and Double in C#

Hi,
I was wondering if there is a difference between double and Double, between string and String, int and Int32 .. etc. in C#. I know that they all are primitive types, and that "int" for example is a synonym for Int32 in C#. But I was wondering - if int is a value type, does it mean that Int32 is a value type too? (it is a class as far as I know). And one more. Suggest we have the following code:

int i = 5;

Int32 i1 = 5;

i.ToString(); // i is boxed as far as i know

i1.ToString(); // is i1 boxed too ?

So i am wondering if Int32 is also being boxed.
Best regards
jonyzz is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I take a square root? Fall Back Son C 26 Oct 23rd, 2006 1:24 PM
HELP I dont know y this has an error PLEASEHELP C++ 9 Aug 4th, 2005 6:12 PM
C at College, advice if you please. Ramlag C 10 Apr 29th, 2005 10:53 PM
help out beginner with some errors (solved) monka Java 8 Mar 3rd, 2005 9:50 PM
Y for yes and N for no problem sobank C++ 4 Mar 1st, 2005 11:33 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:45 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC