Open sandboxFocus

Method CreateTupleType

CreateTupleType(params IEnumerable<IType>)

Creates a tuple type with the specified element types (given as IType) and default element names.

Declaration
public static ITupleType CreateTupleType(params IEnumerable<IType> elementTypes)
Parameters
Type Name Description
IEnumerable<IType> elementTypes
Returns
Type Description
ITupleType

CreateTupleType(params IEnumerable<Type>)

Creates a tuple type with the specified element types (given as reflection Type's) and default element names.

Declaration
public static ITupleType CreateTupleType(params IEnumerable<Type> elementTypes)
Parameters
Type Name Description
IEnumerable<Type> elementTypes
Returns
Type Description
ITupleType

CreateTupleType(params IEnumerable<(IType Type, string Name)>)

Creates a tuple type with the specified element types (given as IType's) and names.

Declaration
public static ITupleType CreateTupleType(params IEnumerable<(IType Type, string Name)> elements)
Parameters
Type Name Description
IEnumerable<(IType Type, string Name)> elements
Returns
Type Description
ITupleType

CreateTupleType(params IEnumerable<(Type Type, string Name)>)

Creates a tuple type with the specified element types (given as reflection Type's) and names.

Declaration
public static ITupleType CreateTupleType(params IEnumerable<(Type Type, string Name)> elements)
Parameters
Type Name Description
IEnumerable<(Type Type, string Name)> elements
Returns
Type Description
ITupleType

CreateTupleType(params IEnumerable<IParameter>)

Creates a tuple type with the specified parameters as elements.

Declaration
public static ITupleType CreateTupleType(params IEnumerable<IParameter> elements)
Parameters
Type Name Description
IEnumerable<IParameter> elements
Returns
Type Description
ITupleType