How to view object in C #

2
Hello, how can I see my object in C #, as var_dump() in php , an example, to show the infos of the objects, follow my code:

    [HttpPost]
    [ValidateAntiForgeryToken]
    public ActionResult Create([Bind(Include = "IdFuncionario,Nome,IdDepartamento")] Funcionario funcionario)
    {
        if (ModelState.IsValid)
        {
            db.Funcionarios.Add(funcionario);
            db.SaveChanges();
            return RedirectToAction("Index");
        }
        return View(funcionario);
    }

In this case, I needed to see the object funcionario thanks.

    
asked by anonymous 18.11.2015 / 19:20

1 answer

2

You can use the Visual Studio breakpoint and see the state of your object.

Example:

    
18.11.2015 / 19:32