枚举的默认方法
默认情况下,matlab®为.NET枚举提供以下方法:
关系运营商 -
等式
,,,,NE
,,,,GE
,,,,GT
,,,,le
, 和上尉
。转换方法 -
char
,,,,双倍的
,以及获取基础价值的方法。钻头方法 - 仅用于枚举
System.Flags
属性。
例如,键入:
方法('System.Dayofweek')
班级系统的方法。Dayofweek:比较EQ Dayofweek GE等于GT GTHASHCODE INT32 getType le getTypecode lt lt tostring ne char double
获得基础值的方法是INT32
。
这netdocenum.mydays
枚举,有标志
属性,具有位方法。要列出方法,请键入:
方法('netdocenum.mydays')
netdocenum类的方法:比较char等于双gethashcode eq getType ge gettypecode g gettypecode gt mydays int32 int32 tostring le bit lt lt lt lt lt bitnot ne bitor bitor bitxor