.Net Programming
วันจันทร์ที่ 12 มกราคม พ.ศ. 2552
Enum to String and String to Enum
Enum to String
Enum
.
GetName
(
typeof
(
EnumType
)
, mode
)
String to Enum
(
EnumType
)
Enum
.
Parse
(
typeof
(
EnumType
)
;, EnumValue,
true
)
;
ref :
http://snipplr.com/view/3585/enum-to-string-and-string-to-enum/
วันศุกร์ที่ 9 มกราคม พ.ศ. 2552
Generate key file (*.snk) by sn.exe
Go to Visual Studio Tool For "Visual Studio 2xxx Command Prompt
and type "sn.exe -k xxxx.snk"
Example
sn.exe -k c:\myKeyFile.snk
this will generate myKeyFile.snk to C:\
บทความที่ใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
บทความ (Atom)