Share via


AsnReader.ThrowIfNotEmpty Method

Definition

Throws a standardized AsnContentException if the reader has remaining data, performs no function if HasData returns false.

public:
 void ThrowIfNotEmpty();
public void ThrowIfNotEmpty ();
member this.ThrowIfNotEmpty : unit -> unit
Public Sub ThrowIfNotEmpty ()

Remarks

This method provides a standardized target and standardized exception for reading a "closed" structure, such as the nested content for an explicitly tagged value.

Applies to