C#?????????????????
???????????? ???????[ 2013/10/10 15:46:05 ] ????????
????1. ?????????????????????檔
????2. ?????????????????????????????????????????????????檔
????3. ???????ò??????500?е?????????????????????????
????4. ??????????????ò??????25?С?
????5. ?????????г???5???????????????y???????????????
????6. ??д????????80???????
????7. ???????????????????????
????a) ???????????????????????????????????????????
????b) ????????÷?????????????????????
????8. ?????????????????????????
????a) ???????????????????????????????????????????????????
????9. ??????÷????????????
????a) ????????API?????????
????b) ?????÷?????????????????????????????÷???????????????C#????///??
????10. ??????????????????????ù??????趨?????
????11. ????????????????????const????????????????????
????12. ???????????????????const?????????????????????????readonly??
public class MyClass
{
public readonly int Number;
public MyClass(int someValue)
{
Number = someValue;
}
public const int DaysInWeek = 7;
}
????13. ?????????????Assert???
????a) ????15???????μ??(Assert)
????using System.Diagnostics;
????object GetObject()
????{…}
????object obj = GetObject();
????Debug.Assert(obj != null);
????14. ????????ж?????????з????????
????15. ???????????????????
????16. ?????(catch)??????????????(throw)?????????????????????????????
????catch(Exception exception)
????{
????MessageBox.Show(exception.Message);
????throw ; //??throw exception?????
????}
????17. ????????????????????
????18. ???????????????????
????19. ????????????????????
????a) ?????????????ApplicationException??
????b) ???????????л??????
????20. ????????????????????Main??????
????21. ??????????????????????????internal??
????22. ????????????????????????????????
????23. ?????????????????λ?????е??????
????24. ???ó????????С??????(EXE???????)???????????滻???????????????
????25. ?????????????????????
//???????
public enum Color
{
Red??Green??Blue
}
//????
public enum Color
{
Red = 1??Green = 2??Blue = 3
}
??????
???·???
??????????????????
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