Employers: discover CodinGame for tech hiring
EVENTS
UPCOMING
PAST
SOLO
PUZZLES
CODE GOLF
OPTIMIZATION
MULTI
LEADERBOARDS
CLASH OF CODE
BOT PROGRAMMING
CODING ESCAPE
COMMUNITY
CONTRIBUTIONS
LEARN
DISCORD
FORUM
LIVE STREAMS
BLOG
1
Log In
Sign Up
The Difference between String and StringBuilder in C#
AramT
52.2K views
01
Introduction
02
String
03
StringBuilder
04
Exercise
05
Tips for using String and StringBuilder
06
Benchmarking String vs StringBuilder
07
Calculating String Size in memory
08
Conclusion
4/8
Exercise
Previous:
StringBuilder
Next:
Tips for using String and StringBuilder
Now let's work on the below exercise:
Can you return the url of this website using the below strings variables?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace StringApp
{
public class StringUtil
{
public static string GlueString()
{
string tech = "tech";
string dot = ".";
string io = "io";
return ""; // fix this to include the
glued string
}
}
}
Run
22
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
ABOUT US
CAREERS
PRIVACY
FAQ
The #1 tech hiring platform
SCREENING
INTERVIEWING
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN