Table of Contents

Class DelegateDataModel

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

Represents the data model for a delegate type.

public class DelegateDataModel : TypeDataModel
Inheritance
DelegateDataModel
Inherited Members

Properties

InvokeMethod

The method symbol representing the 'Invoke' method of the delegate.

public required IMethodSymbol InvokeMethod { get; init; }

Property Value

IMethodSymbol

Kind

Determines the type of TypeDataModel being used.

public override TypeDataKind Kind { get; }

Property Value

TypeDataKind

Parameters

The parameters of the delegate.

public required ImmutableArray<ParameterDataModel> Parameters { get; init; }

Property Value

ImmutableArray<ParameterDataModel>

ReturnTypeKind

The kind of return type for the delegate, indicating whether it returns void, a task, or a value task.

public required MethodReturnTypeKind ReturnTypeKind { get; init; }

Property Value

MethodReturnTypeKind

ReturnedValueType

The type of the value returned by the delegate, or null if returning void, ValueTask, or Task.

public required ITypeSymbol? ReturnedValueType { get; init; }

Property Value

ITypeSymbol