Пример #1
0
 /// <summary>
 /// Adds a GraphQL interface graph type to the list of GraphQL interfaces implemented by this graph type.
 /// </summary>
 public void Interface(Type type) => Interfaces.Add(type);
Пример #2
0
 /// <summary>
 /// Adds a GraphQL interface graph type to the list of GraphQL interfaces implemented by this graph type.
 /// </summary>
 public void Interface <TInterface>()
     where TInterface : IInterfaceGraphType
 => Interfaces.Add <TInterface>();