Table of Contents

Struct ParameterDataModel

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

A constructor parameter data model wrapping an IParameterSymbol.

public readonly struct ParameterDataModel
Inherited Members

Properties

DefaultValueExpr

The default value literal expressed as a valid C# expression.

public string? DefaultValueExpr { get; }

Property Value

string

HasDefaultValue

Whether the parameter declares a default value.

public bool HasDefaultValue { get; }

Property Value

bool

IsNonNullable

True if parameter is a reference type declared as non-nullable.

public bool IsNonNullable { get; }

Property Value

bool

Parameter

The parameter symbol that this model represents.

public required IParameterSymbol Parameter { get; init; }

Property Value

IParameterSymbol