MASS4.Attributes
6.0.0
dotnet add package MASS4.Attributes --version 6.0.0
NuGet\Install-Package MASS4.Attributes -Version 6.0.0
<PackageReference Include="MASS4.Attributes" Version="6.0.0" />
<PackageVersion Include="MASS4.Attributes" Version="6.0.0" />
<PackageReference Include="MASS4.Attributes" />
paket add MASS4.Attributes --version 6.0.0
#r "nuget: MASS4.Attributes, 6.0.0"
#:package MASS4.Attributes@6.0.0
#addin nuget:?package=MASS4.Attributes&version=6.0.0
#tool nuget:?package=MASS4.Attributes&version=6.0.0
MASS4.Attributes
Shared metadata for forms, editor tools, stable type identity and service discovery. Consumers implement the behavior; this library references neither Turian, Gaya nor a GUI toolkit.
Autoformers builds editable forms from these attributes. Engine-specific component, asset and serialization rules live in Turian.Engine.Attributes.
Form attributes
Use using MASS4.Attributes;. Presentation is implemented by Autoformers.Excalibur; the attributes themselves contain only metadata.
| Attribute | Purpose |
|---|---|
[Show], [Hide] |
Include a nonpublic field/property or exclude a member from the form. |
[SetOrder(priority)] |
Order members; lower priorities appear first. |
[ReadOnly] |
Display a member without allowing edits. |
[Range(min, max)] |
Constrain the numeric editor. |
[Required], [Required("Message")] |
Display a missing-value message without blocking writes. |
[Title("Heading", "Subtitle")] |
Add a heading above a field. |
[Tooltip("Help")] |
Add hover help. |
[HideLabel] |
Give the editor the full row width. |
[GuiColor("#RRGGBB")] |
Tint the controls and nested content; float channel constructors are also available. |
[Button] |
Expose a public parameterless method as a form action. |
[TextArea(minLines, maxLines)] |
Edit text in a growing multiline box, then scroll. |
[ListDrawerSettings(...)] |
Configure collection paging, drag reordering and index labels. |
[EnumLabel("Label")] |
Override an enum member's display name. |
[EnumButtons] |
Display an enum field/property as one horizontal button group; flags toggle independently. |
[EnumPaging] |
Add previous/next controls to the searchable enum dropdown. |
Enum fields use searchable dropdowns by default; [Flags] is the standard .NET attribute that enables multiple selection. Selecting zero clears a flag value, while paging replaces its full value. [EnumButtons] takes precedence over [EnumPaging] if both are present. Labels use member names unless overridden; enum aliases share one numeric choice. Enum member visibility, icons and obsolete diagnostics are not currently implemented. See the enum examples.
Host metadata
These attributes expose information for application consumers. Autoformers retains member metadata, but a host must implement behavior beyond the form attributes above.
| Attribute | Purpose |
|---|---|
[Expand(defaultExpanded)] |
Request an initial expanded state. |
[NumericUpDown] |
Request numeric increment/decrement controls. |
[CustomEditor(typeof(Editor))], [DefaultEditor] |
Declare editor selection metadata. |
[EditorSetting("Path", ...)] |
Describe a settings page or option. |
[MenuItem("Path")], [Panel("Name")] |
Describe commands and dock panels. |
[DefaultOption] |
Mark a fallback importer. |
[TypeId("guid")] |
Declare a stable type identity for serialization consumers. |
[InternalService(...)] |
Declare a service type and InternalServiceLifetime. |
[SuppressPrivate] |
Prevent an attribute from implicitly exposing nonpublic members. |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MASS4.Attributes:
| Package | Downloads |
|---|---|
|
MASS4.Autoformers
A GUI-free form model: reflects plain C# objects into sections of editable fields, collections and actions, driven by MASS4.Attributes. Persistence, null rules and failure reporting are supplied by the consumer. |
GitHub repositories
This package is not used by any popular GitHub repositories.