Skip to content

Add support for override checked casts #149

Description

@CrackAndDie
public static explicit operator checked byte(Int128 value)
    {
        if (value._upper != 0)
        {
            ThrowHelper.ThrowOverflowException();
        }
        return checked((byte)value._lower);
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions