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
Rajendran Sakthivel
NA
13
425
How to assign the NULL value in the immediate if statement
Nov 8 2018 2:33 AM
11/8/2018
byte
? SeverityId =
null
;
SeverityId = arr[
"SeverityId"
].ToString()==
""n
ull
: Convert.ToByte(arr[
"SeverityId"
].ToString());
Able to do like this
if
(arr[
"SeverityId"
].ToString()==
""
)
{
SeverityId =
null
;
}
else
{
SeverityId= Convert.ToByte(arr[
"SeverityId"
].ToString());
}
But I need in One line.
Reply
Answers (
1
)
How to replay chatbot with facebook user name
I am using MVC App without scaffolding