枚举类型的应用

    [Serializable]
    public enum ObxRelationshipType
    {
        OneToOne = 0,
        OneToMany = 1,
        OneToOneRequired = 2,
        OneToManyRequired = 3,
    }

应用枚举类的方法为:
     ObxRelationshipType obxType=new ObxRelationshipType();
   obxType.toString() 得到所存储的特定枚举的类型

你可能感兴趣的:(枚举)