Example:
public class HomeController : Controller{public string Index(ref int id){return "This is Index Method" + id;}}
Interviews5 answers
Example:
public class HomeController : Controller{public string Index(ref int id){return "This is Index Method" + id;}}
ref and out variable store address of the value.
So it not possible to pass address of variable using url or other way.
Answer an interview question and earn +10 SHARP for every answer.
See unanswered questions