Skip to content

PropertyTabAttribute.Equals(PropertyTabAttribute other) should likely accept null #55178

@krwq

Description

@krwq

Found during adding nullable annotations to TypeConverter (#54961).

Most likely the signature for this method should look like:

public bool Equals([NotNullWhen(true)] PropertyTabAttribute? other)

but currently it will throw NRE as it accesses members without any null checks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions