11 references to ThrowInvalidOperationException
System.Text.Json (11)
System\Text\Json\Writer\Utf8JsonWriter.cs (3)
648ThrowInvalidOperationException(ExceptionResource.CannotWriteWithinString); 657ThrowInvalidOperationException(ExceptionResource.CannotStartObjectArrayWithoutProperty); 664ThrowInvalidOperationException(ExceptionResource.CannotStartObjectArrayAfterPrimitiveOrClose);
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Helpers.cs (2)
68ThrowInvalidOperationException(ExceptionResource.CannotWriteWithinString); 72ThrowInvalidOperationException(ExceptionResource.CannotWritePropertyWithinArray);
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Helpers.cs (6)
58ThrowInvalidOperationException(ExceptionResource.CannotWriteWithinString); 67ThrowInvalidOperationException(ExceptionResource.CannotWriteValueWithinObject); 73ThrowInvalidOperationException(ExceptionResource.CannotWriteValueAfterPrimitiveOrClose); 107ThrowInvalidOperationException(ExceptionResource.CannotWriteValueWithinObject); 113ThrowInvalidOperationException(ExceptionResource.CannotWriteValueAfterPrimitiveOrClose); 121ThrowInvalidOperationException(ExceptionResource.CannotWriteWithinString);