5
Reply

Is it possible to provide a ref and out keyword to the action method in ASP.NET MVC? If yes how it is and if not what is the reason?

Example:

  1. public class HomeController : Controller
  2. {
  3. public string Index(ref int id)
  4. {
  5. return "This is Index Method" + id;
  6. }
  7. }