Ejemplo n.º 1
0
 /// <summary>
 /// Determines whether a target is available, considering its dependencies
 /// and the services provided by the emulator core.
 /// </summary>
 public static bool IsAvailable(IEmulatorServiceProvider source, Type targetType)
 {
     return(targetType.GetPropertiesWithAttrib(typeof(RequiredService))
            .Select(pi => pi.PropertyType)
            .All(t => source.HasService(t)));
 }
Ejemplo n.º 2
0
		/// <summary>
		/// Determines whether a target is available, considering its dependencies
		/// and the services provided by the emulator core.
		/// </summary>
		public static bool IsAvailable(IEmulatorServiceProvider source, Type targetType)
		{
			return targetType.GetPropertiesWithAttrib(typeof(RequiredService))
				.Select(pi => pi.PropertyType)
				.All(t => source.HasService(t));
		}