Skip to content

Remove IsEmpty workaround in Span and ReadOnlySpan #64514

@deeprobin

Description

@deeprobin

Follow up issue for #10950


this could be labeled as easy btw


As described in #63902, it would be good to remove comments and workarounds that have already been fixed.

So these workarounds may be replaced by the non-workaround-way:

/// <summary>
/// Returns true if Length is 0.
/// </summary>
public bool IsEmpty
{
[NonVersionable]
get => 0 >= (uint)_length; // Workaround for https://github.com/dotnet/runtime/issues/10950
}

/// <summary>
/// Returns true if Length is 0.
/// </summary>
public bool IsEmpty
{
[NonVersionable]
get => 0 >= (uint)_length; // Workaround for https://github.com/dotnet/runtime/issues/10950
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions