Ejemplo n.º 1
0
 /// <summary>
 /// Get valid naming for GQL GraphType when using generics.
 /// <example>
 /// 'PageMetaGraphType`1' => 'PageMeta_Gaming'
 /// </example>
 /// </summary>
 /// <param name="graphType"></param>
 public static string GetDemystifiedGraphName(this INamedType graphType)
 => graphType.GetType().GetDemystifiedName()
 .Replace("GraphType", "")
 .Replace("<", "_")
 .Replace(">", "");
 public static bool IsIntrospectionType(this INamedType type)
 {
     return(type.GetType().IsDefined(
                typeof(IntrospectionAttribute),
                false));
 }