Method TryParse
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
TryParse(string?, out QueryGuardOrigin?)
Parses the first frame that carries a source location.
public static bool TryParse(string? stackTrace, out QueryGuardOrigin? origin)
Parameters
stackTracestringA captured, already-filtered stack trace. May be null.
originQueryGuardOriginThe parsed origin, or null when there is none.
Returns
Remarks
The first frame with a location rather than the first frame: the nearest application frame is often a compiler-generated async state machine whose own frame has no symbols, while the frame just behind it does. Taking the first located frame lands on the code someone wrote.