A concrete implementation of IDescribedObject<T> that encapsulates an object and its human-readable description.
Namespace: Metalama.Framework.Eligibility
Assembly: Metalama.Framework.dll
Syntax
public sealed class DescribedObject<T> : IDescribedObject<T>, IFormattableType Parameters
| Name | Description |
|---|---|
| T | The type of object being described. |
Remarks
This class is used internally by the eligibility system to provide formatted error messages when eligibility rules fail. User code rarely needs to create instances of this class directly.
Constructors
| Name | Description |
|---|---|
| DescribedObject(T, FormattableString?) | Initializes a new instance of the DescribedObject<T> class. |
Properties
| Name | Description |
|---|---|
| Description | Gets an optional human-readable description of Object, suitable for inclusion in error messages. |
| Object | Gets the object being described (typically a declaration such as a method, type, or parameter). |