Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum types showing as string #176

Open
djaus2 opened this issue Mar 8, 2025 · 0 comments
Open

Enum types showing as string #176

djaus2 opened this issue Mar 8, 2025 · 0 comments

Comments

@djaus2
Copy link

djaus2 commented Mar 8, 2025

For 👍

    /// <summary>
    /// <c>DeviceType</c> enum
    /// </summary>
    public enum DeviceType { sensor, display, actuator, serial, other, inputdevice }

    /// <summary>
    /// Device object
    /// </summary>
    public class Device
    {
        /// <summary>
        /// Device Type enum
        /// </summary>
        public DeviceType DeviceType { get; set; }
        /// <summary>
        /// Device Id
        /// </summary>
        public int DeviceId { get; set; }
    ```

When Device object is used, DeviceType, the enum,  shows as string type:

![Image](https://github.com/user-attachments/assets/89baa635-442d-417e-abdf-576767c53c20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant