NarjisHaider
1/23/2020 - 11:18 PM

Dynamic Exception Messages

  try
  {
      
  }
 catch (Exception exception)
  {
      var declaringType = MethodBase.GetCurrentMethod().DeclaringType;
      if (declaringType != null)
          EventLogProvider.LogException(declaringType.Name,
              MethodBase.GetCurrentMethod().Name, exception);
  }