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

Gets a value indicating whether the annotated property or field should be ignored in the shape model.

public bool Ignore { get; init; }

Property Value

bool

Name

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

public string? Name { get; init; }

Property Value

string

Order

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

public int Order { get; init; }

Property Value

int