速度、高效、稳定

ASP.NET开发
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

序列化Enum为数组

Posted on 2007-12-13 14:59  网络-双子星  阅读(715)  评论(1)    收藏  举报
Enum.GetValues(typeof(MessageSort))
    
    Activity: Activity
    Circle: Circle
    Drafts: Drafts
    Else: Else
    Friend: Friend
    Input: Input
    Outbox: Outbox
    Recycle: Recycle

{维数:[8]}
    [0]: Else
    [1]: Input
    [2]: Recycle
    [3]: Outbox
    [4]: Drafts
    [5]: Friend
    [6]: Circle
    [7]: Activity