コード例 #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(">", "");
コード例 #2
0
 public static bool IsIntrospectionType(this INamedType type)
 {
     return(type.GetType().IsDefined(
                typeof(IntrospectionAttribute),
                false));
 }