Skip to content

Enum types showing as string#176

Description

@djaus2

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions