Skip to content

Nested types do not respect TypeNameParseOptions.MaxNodes #106991

@jkotas

Description

@jkotas

Repro

TypeName.Parse("A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A+A")

Expected result

Fails with InvalidOperationException due to default MaxNodes count exceeded

Actual result:

Parses successfully.

Context: #103713 (comment)

Metadata

Metadata

Assignees

Labels

area-System.Reflection.Metadatabinaryformatter-migrationIssues related to the removal of BinaryFormatter and migrations away from itin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions