TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
357
120.6k
How is this returning a new instance?
Aug 16 2012 3:10 PM
Hi
Given the following code example
// It returns the altered argument as a new instance of string.
public
static
string
BetterThanPassTheReference(
string
argument)
{
return
argument +
" ABCDE"
; }
I might be missing something obvious here but how is this method returning a new instance of string?
Could this be a shorthand notation for the following:-
String returnArguement = arguement + "ABCDE";
return returnArguement;
Regards
Reply
Answers (
2
)
excel document
How to export Csv File With special characters?