Skip to content

Why Debug.Assert is used instead of direct exception throwing in Attribute.cs? #39840

Description

@EmilyGraceSeville7cf

image

Hello! Can somebody tell me why Debug.Assert is used instead of direct exception throwing? When this approach is better than exceptions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.RuntimequestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions