Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
c# check if list contain value something then assign another
Mani Kandan
Jan 1 2017 1:19 AM
251
Reply
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();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to generate qr code for my personal image
Self Learning C# programming