Hi,
I have assign the variable as "public string Test"
Now I have to take the value on that as Boolean - true or false
So I have made the below conversion
Convert.ToBoolean(Test.Equals("1") ? true : false)
Convert.ToBoolean(Test.Equals("1") ? true : false)
but when the Test value comes as null .. I'm gettting object reference error
Kindly help on this.
Kindly help on this.
Thanks
Sathish
Bikesh SrivastavaPosted Dec 22, 2016, 12:32 PM
Nitin SontakkePosted Dec 22, 2016, 7:17 AM
Rajeesh MenothPosted Dec 22, 2016, 6:09 AM
Midhun TpPosted Dec 22, 2016, 5:49 AM
Ram NunnaPosted Dec 22, 2016, 5:07 AM
sathishPosted Dec 19, 2016, 7:26 AM
Test1 = Convert.ToBoolean(Test.Equals("1") ? true : false)
Ravi PatelPosted Dec 19, 2016, 7:05 AM