private Log4NetProviderOptions GetInternalOptions(Log4NetLogger logger) { var propertyInfo = logger.GetType() .GetProperty("Options", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static); return(propertyInfo.GetValue(logger) as Log4NetProviderOptions); }
private Log4NetProviderOptions GetInternalOptions(Log4NetLogger logger) { return(logger.GetType() .GetPropertyByName("Options") .GetValue(logger) as Log4NetProviderOptions); }