Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Example with using statement fails to compile and run #174

@rpetrusha

Description

@rpetrusha

Example with using statement fails to compile and run

In the Standard Numeric Format Strings article, the example in The General ("G") Format Specifier fails to compile. Error messages indicate that the culprit is the using System; statement.

If the using System; statement is removed, the code successfully compiles but throws an OutOfMemoryException.

This behavior has been reported in two issues in the dotnet/docs repo: dotnet/docs#11250 and dotnet/docs#11413.

Where did this error occur?

  • docs.microsoft.com

What kind of error was it?

  • using System statement can't be compiled.
  • Removing using System statement throws OutOfMemoryException.

Screenshots
See dotnet/docs#11413

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions