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
Kumar AU
1.4k
309
61.3k
Need help on LINQ Query C#
Sep 22 2018 7:01 PM
Dear All,
I am new to LINQ, I wrote a following code using C#, but I need to rewrite using LINQ, so could you please let me know , how can I rewrite the same.
Basicaly I want to achive for all the 0th position in the array I need to set NULL value, for the certin property.
Here - OrganizationList is an array.
if (OrganizationList.Count > 0)
{
if (OrganizationList[0].OrganizationLevel == 0)
{
OrganizationList[0].NetworkParticipation = null;
OrganizationList[0].ApprovalPolicyID = null;
OrganizationList[0].LastUpdateDate = null;
}
}
Please help me
Reply
Answers (
5
)
Not able to decide to choose ASP.NET MVC or ASP.NET CORE
Whatsapp meassging using C# with out Twilio??