Table of Contents

Class ParameterShapeAttribute

Namespace
PolyType
Assembly
PolyType.dll

Configures the shape of a parameter for a given constructor.

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public class ParameterShapeAttribute : Attribute
Inheritance
ParameterShapeAttribute
Inherited Members

Properties

IsRequired

Gets a value indicating whether an argument should be supplied from the data source rather than relying on the default value of the parameter or its type.

public bool IsRequired { get; set; }

Property Value

bool

IsRequiredSpecified

Gets a value indicating whether IsRequired was explicitly set.

public bool IsRequiredSpecified { get; }

Property Value

bool

Name

Gets a custom name to be used for the particular parameter.

public string? Name { get; init; }

Property Value

string