Interviews - C# Corner

Shrimant Telgave
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. }
By Shrimant Telgave in .NET onOct 04 2019

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS