Table of Contents

Class PropertyShapeAttribute

Namespace
PolyType
Assembly
PolyType.dll

Configures the shape of a property or field for a given type.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public sealed class PropertyShapeAttribute : Attribute
Inheritance
PropertyShapeAttribute
Inherited Members

Properties

Ignore

Indicates that the annotated property or field should be ignored in the shape model.

public bool Ignore { get; init; }

Property Value

bool

Name

Specifies a custom name to be used for the particular property or field.

public string? Name { get; init; }

Property Value

string

Order

Specifies the order in which the property or field should be included in the shape model.

public int Order { get; init; }

Property Value

int