throw vs throw ex ¿Cuál crees que no debes usar?

Si alguna vez te has puesto a pensar ¿Qué debo usar un throw o throw ex? y no sabias que elegir entonces te recomiendo que leas este post.
public void Tarea()
{
    try
    {
        //Ocurre una excepción
    }
    catch (Exception ex)
    {
        //Envio Mail
        //Log de errores
        //Etc
        //¿throw o throw ex;? 
    } 
 } 

Seguir leyendo

Try-Catch – ¿Por qué y para qué usas throw?

Si alguna vez has encontrado la sentencia throw dentro de un Try-Catch y este comportamiento se repite por toda la aplicación entonces te recomiendo que leas este post:
public void Tarea()
{
    try
    {
        //Ocurre una excepción
    }
    catch (Exception ex)
    {
        throw;
    }
}

Seguir leyendo