C# Class GraphQL.Net.VariableTypes

Exibir arquivo Open project: ckimes89/graphql-net Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddType ( ITypeHandler>.Func customHandler ) : void
Complete ( ) : void
TranslateValue ( Value graphQLValue, Type desiredCLRType ) : object

Get a CLR object of type desiredCLRType from the value graphQLValue.

VariableTypeOf ( Type clrType ) : VariableType

Return the schema variable type used to represent values of type clrType.

Method Details

AddType() public method

public AddType ( ITypeHandler>.Func customHandler ) : void
customHandler ITypeHandler>.Func
return void

Complete() public method

public Complete ( ) : void
return void

TranslateValue() public method

Get a CLR object of type desiredCLRType from the value graphQLValue.
public TranslateValue ( Value graphQLValue, Type desiredCLRType ) : object
graphQLValue Value
desiredCLRType System.Type
return object

VariableTypeOf() public method

Return the schema variable type used to represent values of type clrType.
public VariableTypeOf ( Type clrType ) : VariableType
clrType System.Type
return VariableType