Esempio n. 1
0
 public static bool TryResolve(this DependencySource source, ResolutionContext context, Type type,
                               out object result,
                               out DependencySource actualSource) =>
 source.TryResolveInGameObject(context, type, out result, out actualSource) ||
 source.TryResolveGlobally(type, out result, out actualSource);
Esempio n. 2
0
 public static bool CanBeResolvedSafe(this DependencySource source, ResolutionContext context, Type type,
                                      out DependencySource actualSource) =>
 source.TryResolveInGameObject(context, type, out _, out actualSource) ||
 source.CanBeResolvedGloballySafe(type, out actualSource);
 public static bool TryResolve(this DependencySource source, Context context, Type type, out object result) =>
 source.TryResolveInGameObject(context, type, out result) ||
 source.TryResolveGlobally(type, out result);