Thanks to visit codestin.com
Credit goes to github.com

Skip to content

typeof(object).GetMember("") does not return an empty array #16010

@slozier

Description

@slozier

Might be caused by the change in #11003?

Steps to Reproduce

typeof(object).GetMember("").Length;

Current Behavior

The array contains .ctor so the Length is 1.

Expected Behavior

The array should be empty?

On which platforms did you notice this

[ ] macOS
[x] Linux
[ ] Windows

Version Used:

Mono JIT compiler version 6.0.0.313 (tarball Sun Jul 14 09:57:59 UTC 2019)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions