|
-
Apr 22nd, 2003, 12:51 PM
#1
Thread Starter
yay gay
String/string
what are their diferences?
\m/  \m/
-
Apr 22nd, 2003, 03:30 PM
#2
PowerPoster
One is a reference type, the other is a value type. Also, they are a little different in their implementation.
-
Apr 23rd, 2003, 01:30 AM
#3
Hyperactive Member
string is the c# alias for the System.String type. It maps directly to System.String and as a result is identical, there is no difference between the two, and they are both reference types.
-
Apr 23rd, 2003, 02:14 AM
#4
Thread Starter
yay gay
string is like a c++'s typedef?
\m/  \m/
-
Apr 23rd, 2003, 02:21 AM
#5
Hyperactive Member
ya, i guess similar in concept but i have no idea how c# implements the mapping.
-
Apr 23rd, 2003, 02:40 AM
#6
The mapping is built-in into the compiler. It's the same for object and System.Object btw.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|