Open
Description
JsonDocument is disposable, and it's unfortunately common to see code that things like:
JsonElement json = JsonDocument.Parse(...).RootElement;
CA2000 should warn that the JsonDocument instance returned from Parse needs to be disposed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment