6
I had a question regarding some codes I found in a project of a former employee of the company. It is a code that contains assignment in the parameters of the variables. Below follows an example:
public ActionResult Teste(long id = 0, String tema = "")
{
//Lógica
}
My question is what is the assignment for - long id = 0, String tema = ""
whether in that context it is really attribution in the codes. Virtually all Actions
and various methods contain this form of declaration.