Beispiel #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);
 }