Interviews3 answers
why JSON return type is used instead ActionResult()?
3 Answers
For Example.,
Public Object M1()
{
return 25;
}
For above Method we can write Like this also.,
Public int M1()
{
return 25;
}
if return type as Object later we have to do DownCasting it will effect on Prformance.,if return type is int we can use value Directly .,like this is Scenario also Same
Nani Veerabhadra KarriPosted Oct 19, 2017, 6:51 AM EDT
ActionResult is an abstract class .and then return values as drived class like more then one return class is there like jsonresult,javascriptrsult,contentresult,viewresult....etc
Satheesh ElumalaiPosted Oct 9, 2017, 8:39 PM EDT
Performance is most concerns
Manav PandyaPosted Feb 9, 2017, 8:58 AM EST


