RECT with Structure
#2839
|
there is "rect with" structure in ShadowEdgeConverter: ` is it supported in Language version 10.0 above? What should to do in language version 9.0? Thanks, |
Answered by
Keboo
Sep 10, 2022
Replies: 2 comments
|
In prior versions of the language, the way to check for a given flag is with bitwise operators. So: if (edges.HasFlag(ShadowEdges.Left))
{
...
}Becomes: if ((edges & ShadowEdges.Left) == ShadowEdges.Left)
{
...
} |
0 replies
Answer selected by
hxhgxy
|
thanks. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In prior versions of the language, the way to check for a given flag is with bitwise operators.
So:
Becomes: