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
David Smith
NA
2k
0
Search Between Two List (Normalized Both List)
Dec 19 2019 6:31 PM
Is there a better robust way to rewrite this using linq or any other way.
private static int getPowerIndexGreaterThanTargetPower(double target)
{
for (int i = 0; i < _color.PowerList.Count(); i++)
{
for (int j = 0; j < _color.PowerList[i].Count(); j++)
{
if (_color.PowerList[i][j] > target)
{
return j;
}
}
}
return -1;
}
Reply
Answers (
1
)
Linq Search Between Two List (Normalized Both List)
Modal popup view in asp.net web application