Table of Contents

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

stackTrace string

A captured, already-filtered stack trace. May be null.

origin QueryGuardOrigin

The parsed origin, or null when there is none.

Returns

bool

true when a frame carried a file and a line.

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.