字符串VS串 [英] String vs string

查看:211
本文介绍了字符串VS串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#中有字符串对象和字符串的对象。

In C# there are String objects and string objects.

这两者之间的区别是什么? 什么是最好的做法就使用哪一个?

What is the difference between the two? What are the best practices regarding which to use?

推荐答案

没有区别。串(小写)只是一个别名System.String

There is no difference. string (lower case) is just an alias for System.String.

这篇关于字符串VS串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆