/// <summary> /// Gets a value indicating whether runtime code generation is supported on the specified platform. /// </summary> /// <param name="platform">The platform to evaluate.</param> /// <returns><see langword="true"/> if the specified platform supports runtime code generation; otherwise, <see langword="false"/>.</returns> public static Boolean IsRuntimeCodeGenerationSupported(UltravioletPlatform platform) { if (platform == UltravioletPlatform.iOS) { return(false); } return(true); }
/// <summary> /// Gets a value indicating whether the specified platform supports expression compilation. /// </summary> private static Boolean IsSupportedPlatform(UltravioletRuntime runtime, UltravioletPlatform platform) { // NOTE: This is checking to see if we're a .NET Native application. var entryAssembly = Assembly.GetEntryAssembly(); if (entryAssembly != null && String.IsNullOrEmpty(entryAssembly.Location)) { return(false); } return(platform != UltravioletPlatform.Android && platform != UltravioletPlatform.iOS); }