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
Ganesamoorthi M
NA
129
1.4k
Anyone please clear my doubt on reference Types?
Jul 24 2018 3:32 AM
Consider the Below Code,
int
[] intArray =
new
int
[] { 10, 20, 20, 12, 15, 22, 11, 45, 15, 45 };
intArray.Distinct();
foreach
(
int
num
in
intArray)
{
Console.Write(num +
" "
);
}
Array is a Reference type. But when I use Distinct on Array it is not affected. I am confused here. Please anyone clear it.
Reply
Answers (
2
)
Why do we need Destructor when we have Garbage collector.c#
Anything interesting about method parameters in c#