private void SetStack(IEnumerable <ExceptionStack> exceptionStack) { if (exceptionStack == null || exceptionStack.Count() == 0) { return; } foreach (var exception in exceptionStack) { string id = exception.SourceCode; var value = SourceCode.FromExceptionStack(exception); data.Add(id, value); } }
internal SourceCodeData(IEnumerable <BacktraceStackFrame> exceptionStack) { if (exceptionStack == null || exceptionStack.Count() == 0) { return; } foreach (var exception in exceptionStack) { if (string.IsNullOrEmpty(exception.SourceCode)) { continue; } string id = exception.SourceCode; var value = SourceCode.FromExceptionStack(exception); data.Add(id, value); } }