123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Runtime.Serialization;
- namespace Aitex.Triton160.Common
- {
- [DataContract]
- [Serializable]
- public enum ModuleName
- {
- [EnumMember]
- System = 0,
- }
- public class ModuleNameString
- {
- public const string System = "System";
- public static string ToCstring(ModuleName value)
- {
- switch (value)
- {
- case ModuleName.System:
- return "系统";
- default:
- return "未知腔";
- }
- }
- public static ModuleName ToEnum(string value)
- {
- return (ModuleName)Enum.Parse(typeof(ModuleName), value, true);
- }
- }
- }
|