Skip to content
Discussion options

You must be logged in to vote

C# 9.0 includes or patterns, which allow you to write code like the following:

IsRotating = args.Status is GestureStatus.Started or GestureStatus.Running;

Is that sufficient for your needs?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@softlion
Comment options

@CyrusNajmabadi
Comment options

@theunrepentantgeek
Comment options

Answer selected by YairHalberstadt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #4065 on October 25, 2020 08:09.