/// <summary>\r
/// PlatformのOSの種類をあらわす\r
/// </summary>\r
- public enum PlatformOSType\r
+ public enum PlatformOSType : ushort\r
{\r
- WIN95,\r
- WIN98,\r
- WINME,\r
+ WIN95 = 40,\r
+ WIN98 = 41,\r
+ WINME = 42,\r
\r
- WINNT4,\r
- WIN2K,\r
- WINXP,\r
- WIN2003,\r
- VISTA,\r
- WIN2008,\r
+ WINNT4 = 140,\r
+ WIN2K = 150,\r
+ WINXP = 151,\r
+ WIN2003 = 152,\r
+ VISTA = 160,\r
+ WIN2008 = 161,\r
}\r
\r
public class Platform\r
return string.Join(",", strs);\r
}\r
set {\r
- string[] strs = (value ?? "").Split(',');\r
+ string[] strs = (value ?? string.Empty).Split(',');\r
System.Collections.Generic.List<PlatformOSType> list = new System.Collections.Generic.List<PlatformOSType>();\r
for (int i = 0; i < strs.Length; i++) {\r
try {\r
} catch (ArgumentException) {\r
}\r
}\r
+ list.Sort();\r
OsType = list.ToArray();\r
}\r
}\r