using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Xamarin.Forms { public static partial class Forms { static IReadOnlyList s_flags; public static IReadOnlyList Flags => s_flags ?? (s_flags = new List().AsReadOnly()); public static void SetFlags(params string[] flags) { if (IsInitialized) { throw new InvalidOperationException($"{nameof(SetFlags)} must be called before {nameof(Init)}"); } s_flags = flags.ToList().AsReadOnly(); } } }