469,934 Members | 1,783 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

System.String vs string

Jay
What is the difference between these two types. The both seem to have the
same methods. Is there an advantage to one over the other?

Nov 16 '05 #1
5 4282
C# aliases types in the .NET Framework Base Class Library. C# string type
is really an alias for the System.String class in the .Net framework
library.

--
Ajay Kalra [MVP - VC++]
aj*******@yahoo.com
"Jay" <j@h.com> wrote in message news:mY_yc.16247$1L4.11455@okepread02...
What is the difference between these two types. The both seem to have the
same methods. Is there an advantage to one over the other?

Nov 16 '05 #2
Jay
Is it a matter of intrinsic type and user-defined type?

"Jay" <j@h.com> wrote in message news:mY_yc.16247$1L4.11455@okepread02...
What is the difference between these two types. The both seem to have the
same methods. Is there an advantage to one over the other?

Nov 16 '05 #3
Jay
Thank You!

"Jay" <j@h.com> wrote in message news:wJ%yc.16253$1L4.6154@okepread02...
Is it a matter of intrinsic type and user-defined type?

"Jay" <j@h.com> wrote in message news:mY_yc.16247$1L4.11455@okepread02...
What is the difference between these two types. The both seem to have the same methods. Is there an advantage to one over the other?


Nov 16 '05 #4
string maps to System.String. There is no disadvantage to use string in place
of String anywhere in your code. The only complaints you'll hear are completely
stylistic. Even the BCL team had an ongoing thought bubble about using C#
versus
BCL types in the source for the BCL itself.

--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"Jay" <j@h.com> wrote in message news:mY_yc.16247$1L4.11455@okepread02...
What is the difference between these two types. The both seem to have the
same methods. Is there an advantage to one over the other?

Nov 16 '05 #5
They are the same. string maps to System.String.

On Sun, 13 Jun 2004 11:13:33 -0500, Jay <j@h.com> wrote:
What is the difference between these two types. The both seem to have
the
same methods. Is there an advantage to one over the other?


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Vitling | last post: by
2 posts views Thread by =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.