Skip to content

WPF0042 warns on ArgumentNullException.ThrowIfNull #461

Open
@Laniusexcubitor

Description

Currently WPF0042 warns on the following code:

public static void SetColumn(UIElement element, int value)
{
    ArgumentNullException.ThrowIfNull(element);

    element.SetValue(ColumnProperty, value);
}

ArgumentNullException.ThrowIfNull is new and preferred, see CA1510

PresentationFramework was already updated.

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