internal static PlatformIcon[] GetRequiredPlatformIconsByType(IPlatformIconProvider platformIcons, PlatformIconKind kind) { Dictionary <PlatformIconKind, PlatformIcon[]> requiredIcons = platformIcons.GetRequiredPlatformIcons(); if (kind != PlatformIconKind.Any) { return(requiredIcons[kind]); } return(requiredIcons.Values.SelectMany(i => i).ToArray()); }
public static PlatformIconKind[] GetSupportedIconKindsForPlatform(BuildTargetGroup platform) { IPlatformIconProvider platformIconProvider = GetPlatformIconProvider(platform); if (platformIconProvider == null) { return new PlatformIconKind[] {} } ; return(platformIconProvider.GetRequiredPlatformIcons().Keys.ToArray()); }
internal static PlatformIcon[] GetRequiredPlatformIconsByType(IPlatformIconProvider platformIcons, PlatformIconKind kind) { Dictionary <PlatformIconKind, PlatformIcon[]> requiredPlatformIcons = platformIcons.GetRequiredPlatformIcons(); PlatformIcon[] result; if (kind != PlatformIconKind.Any) { result = requiredPlatformIcons[kind]; } else { result = requiredPlatformIcons.Values.SelectMany((PlatformIcon[] i) => i).ToArray <PlatformIcon>(); } return(result); }