Ejemplo n.º 1
0
 public static bool TryResolve <T>(this IGraphTypeResolverSource source, out T graphType)
     where T : GraphType
 {
     graphType = default(T);
     if (!source.Contains(typeof(T)))
     {
         return(false);
     }
     graphType = source.Resolve <T>();
     return(true);
 }
Ejemplo n.º 2
0
 public static T Resolve <T>(this IGraphTypeResolverSource source)
     where T : GraphType
 => source.Resolve(typeof(T)) as T;