Class DelegateDataModel
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
Kind
Determines the type of TypeDataModel being used.
public override TypeDataKind Kind { get; }
Property Value
Parameters
The parameters of the delegate.
public required ImmutableArray<ParameterDataModel> Parameters { get; init; }
Property Value
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
ReturnedValueType
The type of the value returned by the delegate, or null if returning void, ValueTask, or Task.
public required ITypeSymbol? ReturnedValueType { get; init; }