Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Add support for Bond attributes on enum values #138

@chwarr

Description

@chwarr

It would be nice to have Bond attributes on enum values as well as on enums. This would help with things like automatically mapping error codes in various systems. For example:

enum ErrorCode
{
    [HResult("S_OK")]
    [HttpStatusCode("200")]
    OK;

    [HResult("S_FALSE")]
    [HttpStatusCode("200")]
    False;

    [HttpStatusCode("418")]
    Teapot;
}

Not all enum values need to have the same set of attributes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions