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
Abhilash J A
530
2.4k
598.3k
c# check if list contain value something then assign another
Jan 1 2017 1:19 AM
Hello Everyone,
I have datatable with list items. If Fullname usertype is 'Admin' then want output like 'Fullname(Admin)'.
Eg: Rajesh(Admin)
objTble_accessLog = dt.AsEnumerable().Select(m =>
new
Tble_accessLog()
{
accessLogId = m.Field
(
"accessLogId"
),
FullName = m.Field<
string
>(
"FullName"
),
/* Here, If Fullname usertype is 'Admin' then want output like 'Fullname(Admin)' eg Rajesh(Admin)'*/
AccessDate = m.Field<
string
>(
"AccessDate"
),
Action = m.Field<
string
>(
"Action"
)
}).ToList();
Reply
Answers (
1
)
how to generate qr code for my personal image
Self Learning C# programming