Table of Contents

Class MethodShapeAttribute

Namespace
PolyType
Assembly
PolyType.dll

Configures the shape of a method for a given type.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class MethodShapeAttribute : Attribute
Inheritance
MethodShapeAttribute
Inherited Members

Properties

Ignore

Gets a value indicating whether the annotated method 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 method.

public string? Name { get; init; }

Property Value

string