| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 502 人关注过本帖
标题:枚举的成员语句什么意思,新手求帮忙
取消只看楼主 加入收藏
活出精彩
Rank: 1
等 级:新手上路
帖 子:15
专家分:1
注 册:2013-12-11
结帖率:100%
收藏
已结贴  问题点数:10 回复次数:1 
枚举的成员语句什么意思,新手求帮忙
程序代码:
public enum BIBoardType
    {
        [Description("无外接板")]
        NoBoard = 0,
        [Description("DS18B20温度传感器")]
        DS18B20 = 1,
        [Description("温湿度")]
        STH10 = 2,
        [Description("光敏电阻")]
        Photoresistor = 3,
        [Description("单路继电")]
        SingleWayRelay = 4,
        [Description("雨滴")]
        RainDropMeter = 5,
        [Description("烟雾")]
        Smog = 6,
        [Description("燃气")]
        Gas = 7,
        [Description("土壤温湿度")]
        SoilTemperatureHumidity = 8,
        [Description("红外")]
        Ir = 9,
        [Description("光照度")]
        AmbientLight = 10,
        [Description("数码管显示器")]
        DigtalDisplay = 11,
        [Description("四路继电器")]
        FourWayRelay = 12,
        [Description("TTL-IO")]
        TTL_IO = 13,
        [Description("隔离IO")]
        Isolated_IO = 14,
        [Description("人体红外")]
        HumanIr = 15,
        [Description("酒精")]
        AlcoholDetector = 16,
        [Description("超声测距")]
        UltraSonicRangeMeter = 17,
        [Description("震动感应器")]
        VibrationDetector = 18,
        [Description("气体压力")]
        BarometricPressure = 19,
        [Description("数字加速度")]
        AcceleroMeter = 20,
        [Description("电子罗盘")]
        ElectronicCompass = 21,
        [Description("直流电机")]
        DCMotor = 22,
        [Description("步进电机")]
        StepMotor = 23,
        [Description("液晶模块")]
        LcdModule = 24,
        [Description("RFID")]
        RFID = 26,
        [Description("路由器")]
        Router = 49,
        [Description("终端设备")]
        Terminal = 50,
        [Description("通用")]
        Common = 253,
    }

就逗号前面成员看不懂。
2014-09-15 17:59
活出精彩
Rank: 1
等 级:新手上路
帖 子:15
专家分:1
注 册:2013-12-11
收藏
得分:0 
回复 2 楼 邓士林
嗯,我懂了,谢谢大大
2014-09-19 19:02
快速回复:枚举的成员语句什么意思,新手求帮忙
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017571 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved