C# ????????
???????????? ???????[ 2013/8/6 10:49:57 ] ????????
???????????????????????????????????????????????????????????????????????????????????1??????????????????????????????????????????ж???????????????????????????????′?????
publicenumDriveType:sbyte
{
CDRom??
Fixed=-2??
Network??
NoRootDirectory=-1??
Ram??
Removable=Network*NoRootDirectory??
Unknown
}
publicenumCustomerKind
{
Normal=90??
Vip=80??
SuperVip=70??
InActive=100
}
publicclassCustomer
{
publicreadonlyCustomerKindKind;
privatedoublem_Payment;
publicdoublePayment
{
returnm_Payment*(int)Kind/100;
}
????????CustomerKind??????????????????????????????????????????????????Customer???У?Payment???????????????????????????????????????????????????????????????????????????????????????????????????????
????// Code here
????}
??????????????????????????????????????????????????
Alignment a = (Alignment)1;????????????????????Щ?鷳
public static bool IsAlignment(Alignment a)
{
switch(a)
{
case Alignment.Left:
case Alignment.Center:
case Alignment.Right:
return true;
default:
return false;
}
}
?????????????????????????????????
????????????????System.Enum??public override string ToString(); ????????????????IConvertible?????????y???string ToString(IFormatProvider provider);
static void Main()
{
Alignment a = Alignment.Right;
Console.WriteLine("Alignment is {0}."?? a.ToString());
FontStyle fs = FontStyle.Bold | FontStyle.Underline;
Console.WriteLine("FontStyle is {0}."?? fs.ToString());
}
?????????????????:Console.WriteLine("Alignment is {0}."?? a.ToString("d"));
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11