哪个是可编辑的字符串或字符串构建器 [英] Which is editable string or stringbuilder

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

问题描述

哪个是可编辑的字符串或stringbuilder

解决方案

查看这篇文章



String Vs StringBuilder(C#) [ ^ ]



这将给你一个想法


如果你问的是

  string 

 StringBuilder 

变量可以在分配后更改,两者的答案都是肯定的。每个人都以自己的方式。我猜你想要改变存储在变量中的部分值,我认为最好的选择是

  string  





像Aniket所说,文章将为您提供您正在寻找的信息。


Which is editable string or stringbuilder

解决方案

check this article

String Vs StringBuilder (C#)[^]

This will give you an idea


If you're asking if the value of

string

or

StringBuilder

variables can be changed after it's assigned, the answer would be yes for both. Each one in their own way. I'm going to guess you would like to change part of the value stored in the variable for which I think the best option is

string



Like Aniket said, the article will give you the info you're looking for.


这篇关于哪个是可编辑的字符串或字符串构建器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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