public FailListEntry(TypeDefinition type, Type entry, string original, List <string> stack) { FullName = type.FullName; Original = original; IsFatal = entry.Action == TypeAction.Fail; stack.ForEach(s => TracerStack.Add(new FailListNode("stack", s))); while (entry != null) { EntryStack.Add(new FailListNode("type", entry.ToString())); entry = entry.Parent; } }
public FailListEntry(MethodDefinition method, Method entry, List <string> stack) { FullName = method.FullName; IsFatal = entry.Action == MethodAction.Fail; stack.ForEach(s => TracerStack.Add(new FailListNode("stack", s))); if (entry != null) { EntryStack.Add(new FailListNode("method", entry.ToString())); var type = entry.Parent; while (type != null) { EntryStack.Add(new FailListNode("type", type.ToString())); type = type.Parent; } } }