Skip to content

Suppress CS0067 here #175

Open
Open
@JohanLarsson

Description

@JohanLarsson
public sealed class C : INotifyPropertyChanged
{
                                             ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
    public event PropertyChangedEventHandler PropertyChanged;
}

To avoid:

#pragma warning disable CS0067 // The event is never used
        public event PropertyChangedEventHandler PropertyChanged;
#pragma warning restore CS0067

There are memory leaks when binding to properties on members that do not implement INotifyPropertyChanged maybe it was fixed but no huge harm in implementing the interface and legacy.

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