Пример #1
0
 private void RemoveFieldsOfType(string typeName, ISchemaType contextType)
 {
     foreach (var field in contextType.GetFields().ToList())
     {
         if (field.GetReturnType(this) == typeName)
         {
             contextType.RemoveField(field.Name);
         }
     }
 }
Пример #2
0
 private void RemoveFieldsOfType(string schemaType, ISchemaType contextType)
 {
     foreach (var field in contextType.GetFields().ToList())
     {
         if (field.ReturnType.SchemaType.Name == schemaType)
         {
             contextType.RemoveField(field.Name);
         }
     }
 }