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
Rich
NA
84
61.4k
Convert List item to decimal
Mar 1 2012 3:21 AM
This seems really simple, but I can't figure out what I am missing. I am trying to cast an item from a list to a decimal. The error I am getting is Can not implicitly convert type to decimal. Thanks in advance.
public class specialTeam
{
public decimal Scores {get;set;}
public specialTeam(string awayTeam)
{
Scores = bBall.getStatList().Where(t => t.Teams == awayTeam).Select(s => s.score);
}
}
Reply
Answers (
12
)
Linq Code for access Special Folder
How do I compare a List against a DB Table using LINQ?