Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 11777 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
FlagsAttribute [Flags] is missing on FileCreationMode enum (and lots of other enums)
FlagsAttribute is not required, but should be set on all enums which can be combined.
Code analysis tools have this rule and detects inconsistencies.
It is fixed in master and will be available in the next alpha release.
I have checked this issue on following builds:
Xamarin Studio : 4.2.3 (build 60)
Xamarin.Android: 4.13.0 (Business Edition)
As per my observation, I have noticed that FileCreationMode enum has been marked as [Flags] attribute, but also noticed that the other or few more enums are not marked as [Flags].
Please refer the screencast: http://screencast.com/t/7sAUnjay2
Hence I am reopening this issue.
I am confirming this issue that many enums in Xamarin.Android that should have [Flags] do not have the [Flags] attribute and thus require workarounds to combine. I would list all these items in this bug report, but I believe a larger amount of investigation is needed.
I'm curious if we can find all these items using: https://developer.android.com/reference/android/support/annotation/IntDef.html and the "flags" = true to figure out where each enum needs a [Flags] attribute.