C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
String concatenation with extra variables in C#
WhatsApp
Karthikeyan Anbarasan
14y
4.1
k
0
0
25
Blog
This blog shows on how to do a string concatenation with an extra variable
class CurrencyClass
{
public long Dollars;
public byte Cents;
public override string ToString()
{
return "$" + Dollars + "." + Cents;
}
}
This blog shows on how to do String concatenation with extra variables
Recommended related topics
Membership not found