Needs clarification on C# Flags
- by Jojo
Hi guys, i have this code:
[Flags]
public enum MyUriType {
ForParse,
ForDownload,
Unknown
}
and then:
MyUriType uriType = MyUriType.ForDownload;
but, I was wondering why this returns true:
if ((uriType & MyUriType.ForParse) == MyUriType.ForParse)
When it is not set in the second code group. Please advise.