Table of Contents

Interface IFunctionTypeShape

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

Provides a strongly typed shape model for function types.

public interface IFunctionTypeShape : ITypeShape
Inherited Members

Remarks

A function type shape represents a delegate type or an F# function type.

Properties

IsAsync

Gets a value indicating whether the underlying function returns a Task or ValueTask.

bool IsAsync { get; }

Property Value

bool

IsVoidLike

Gets a value indicating whether the underlying function returns void, Task, or ValueTask.

bool IsVoidLike { get; }

Property Value

bool

Remarks

When true the ReturnType is reported as Unit,

Parameters

Gets the shapes of the parameters accepted by the method.

IReadOnlyList<IParameterShape> Parameters { get; }

Property Value

IReadOnlyList<IParameterShape>

ReturnType

Gets the shape of the return type of the method.

ITypeShape ReturnType { get; }

Property Value

ITypeShape