Ìá¸ßC#±à³ÌˮƽµÄ50¸öÒª¾÷
ÏëÌá¸ßc#±à³Ìˮƽ£¿ÏÂÃæÕâ50Ìõ¾Ñé²»¿É²»¶Á£¡
Ìá¸ßC#±à³ÌˮƽµÄ50¸öÒªµã
1.×ÜÊÇÓÃÊôÐÔ (Property) À´´úÌæ¿É·ÃÎʵÄÊý¾Ý³ÉÔ±
2.ÔÚ readonly ºÍ const Ö®¼ä£¬ÓÅÏÈʹÓà readonly
3.ÔÚ as ºÍ Ç¿ÖÆÀàÐÍת»»Ö®¼ä£¬ÓÅÏÈʹÓà as ²Ù×÷·û
4.ʹÓÃÌõ¼þÊôÐÔ (Conditional Attributes) À´´úÌæÌõ¼þ±àÒëÓï¾ä #if
5.×ÜÊÇΪ×Ô¶¨ÒåÀàÖØÔØ ToString ·½·¨
6.Çø±ðÖµÀàÐͺÍÒýÓÃÀàÐÍ
7.ʹÓò»¿É±äµÄÖµÀàÐÍ(Immutable Atomic Value Types)
8.ÔÚÖµÀàÐÍÖУ¬È·±£0ÊÇÒ»¸öºÏ·¨µÄÊý¾Ý
9.Àí½â ReferenceEquals, static Equals, instance Equals ºÍ ±È½ÏÔËËã·û(==)Ö®¼äµÄ¹Øϵ
10.Àí½â GetHashCode·½·¨µÄȱÏÝ
11.ÔÚ±àдѻ·Ê±£¬ÓÅÏÈʹÓà foreach.
12.ÔÚ¶¨Òå±äÁ¿µÄʱºò¾Í½«Æä³õʼ»¯
13.ʹÓþ²Ì¬¹¹Ô캯ÊýÀ´³õʼ»¯¾²Ì¬³ÉÔ±±äÁ¿
14.Óöà¸ö¹¹Ô캯Êýʱ£¬ÀûÓù¹Ô캯ÊýÁ´
15.ʹÓÃusingºÍtry/finallyÀ´´¦Àí×ÊÔ´µÄÊÍ·Å
16.¾¡Á¿±ÜÃâ²úÉú×ÊÔ´À¬»ø
17.¾¡Á¿±ÜÃâʹÓÃ×°Ïä(boxing)ºÍ²ðÏä(unboxing)
18.ʵÏÖÀàµÄ Dispose ·½·¨
19.Ôڽӿںͼ̳Ð(Inheritance)Ö®¼ä£¬ÓÅÏÈʹÓýӿÚ(interface)
20.Çø·Ö½Ó¿ÚºÍÖØÔØ(overrides)
21.ÓÃίÍÐ(delegate)À´ÊµÏֻص÷(callback)
22.ÓÃʼþ(event)À´¶¨ÒåÍⲿ½Ó¿Ú
23.±ÜÃâ·µ»ØÀàÄÚ²¿³ÉÔ±µÄÒýÓÃ
24.ʹÓÃÔªÊý¾ÝÀ´¿ØÖƳÌÐò
25.ÓÅÏÈʹÓÿÉÐòÁл¯(serilizable)ÀàÐÍ
26.¶ÔÐèÒªÅÅÐòµÄ¶ÔÏóʵÏÖIComparableºÍIComparer½Ó¿Ú
27.±ÜÃâʹÓà ICloneable½Ó¿Ú
28.±ÜÃâʹÓÃÀàÐÍת»»²Ù×÷·û
29.Ö»Óе±»ùÀà¼ÓÈëÁËÓëÅÉÉúÀàÖÐÏÖÓеĺ¯ÊýÃû³ÆÏàͬµÄº¯Êýʱ£¬²ÅÐèҪʹÓà new ²Ù×÷·û
30.¾¡Á¿Ê¹Óà CLS-Compliant
31.¾¡Á¿±àд¶ÌÉÙ£¬¼òµ¥µÄº¯Êý
32.¾¡Á¿±àд±È½ÏСµÄ³ÌÐò¼¯(assembly)
33.ÏÞ¶¨ÀàÐ͵ĿɼûÐÔ(visibility)
34.±àд´óÁ£¶ÈµÄ web API
35.ÔÚʹÓÃʼþʱ£¬ÓÅÏȼ̳лùÀàʼþ£¬¶ø²»ÊÇÖØд´½¨Ò»¸öʼþ
36.¶àʹÓà framework µÄÔËÐÐʱµ÷ÊÔ (DEBUG, TRACE, EVENTLOGµÈ)
37.ʹÓÃ.net±ê×¼µÄÅäÖûúÖÆ
38.ʹÓò¢ÇÒÔÚÀàÖÐÖ§³Ö.netµÄÊý¾Ý°ó¶¨¹¦ÄÜ (Data Binding)
39.ʹÓÃ.netµÄÑéÖ¤»úÖÆ (Validation)
40.¸ù¾ÝÄãµÄÐèÇóÑ¡ÔñÕýÈ·µÄ¼¯ºÏÀà(Collection)
41.ÔÚ×Ô¶¨Òå½á¹¹ÖÐʹÓà DataSet
42.ÀûÓÃÊôÐÔ(Attributes)
43.²»Òª¹ý¶ÈʹÓ÷´Éä(Reflection)
44.´´½¨ÍêÕûµÄ£¬Ó¦ÓóÌÐòÌض¨µÄÒì³£
45.¾¡¿ÉÄܶàµÄ¿¼ÂdzÌÐò¿ÉÄܳöÏÖµÄÒì³££¬²¢×÷³ö´¦Àí
46.¾¡¿ÉÄÜÉÙµÄʹÓà Interop
47.¾¡Á¿Ê¹Óð²È«´úÂë (safe code)
48.¶à¶àѧϰ¡¢Ê¹ÓÃÍⲿ¹¤¾ßºÍ×ÊÔ´
49.×¼±¸Ê¹Óà C# 2.0
50
Ïà¹ØÎĵµ£º
ÓÃÁ˱ðÈ˵ĴúÂ룬ÍƼö+±¸Íü¡£
ÔÌûµØÖ·£º
.net(c#)¶ÁÈ¡flash(swf)ÎļþµÄ³ß´ç
http://www.cnblogs.com/nasdaqhe/archive/2008/07/02/1234357.html
ÓÃ.NET¶ÁÈ¡Flash¸ñʽÎļþÐÅÏ¢
http://www.cnblogs.com/gmm/archive/2007/07/17/310675.html
ÎÒʹÓÃÁ˵ÚÒ»¸öÌû×ÓÖеĴúÂ룬µÚÒ»¸öÌû×ӵĴúÂë²Î¿¼µÄÊǵڶþ¸öÌû×Ó£º£©
The ......
3£©¶ÁÈ¡¡¢²éÕÒ
µ±ÄãÊÖÍ·ÓÐÒ»¸öxmlÎļþºó£¬¿ÉÒÔʹÓÃXmlDocument.Load()·½·¨½«Æä¼ÓÔؽøÀ´ÒԱ㴦Àí£¬ËùÒÔ“¶ÁÈ¡”ûÓÐʲô¿É˵µÄ¡£¶ø“²éÕÒ”²Ù×÷ÍùÍùÉæ¼°XPath£¬ÕâÀïÖ»ÊÇÎÒÈÏΪµÄ±È½Ï³£Óõ½µÄ²éÕÒ²Ù×÷£¬XPathÕâÍæÒâʵÔÚÊǺÜÇ¿´óºÜ±©Á¦¡£
»ØÍ·¿´Ê¾ÀýÎĵµxmlsample.xml£¬ÎÒÃÇ¿ÉÄÜÓöµ½ÕâÑùµÄÐèÇó£ ......
public class yzzSerialize
{
private yzzSerialize()
{ }
private static yzzCache cache = new yzzCache();
public static T GetfromXml<T>(string xmlpath, T t)
{
using (FileStream fs = new FileStream(xmlpath, FileMode.Open, FileAcces ......
Õâ±¾Êé½²½â
C#
ÓïÑÔÊ®·ÖÏêϸ£¬ÎÒ½«ÆäÖеÄÖØÒªÄÚÈÝÕûÀí³ÉÌõ¿î£¬ÒÔ±¸Íü¡£
1.
ʼþÊÇÔÚÂú×ãij¸öÌض¨Ìõ¼þʱ·¢ÉúµÄ£¬´¥·¢
(raise)
ʼþµÄ¶ÔÏó³ÆΪ·¢²¼Õß
(publisher)
£¬¶ÔÕâ¸öʼþ½øÐÐÏìÓ¦µÄ¶ÔÏó³ÆΪ¶©ÔÄÕß
(subscriber)
¡£Ê¼þ´¦Àí³ÌÐòÊÇ×¢²áµ½Ê¼þµÄ·½·¨£¬¿ÉÔÚÈκÎÀà»òÕ߽ṹ ......
ʹÓà PlaySound ÔÚÒƶ¯É豸Éϲ¥·ÅÉùÒôÎļþ¡£´Ë´úÂëʹÓà System.Runtime.InteropServices
µ÷Óà Compact Framework µÄ CoreDll.DLL µÄ PlaySound ·½·¨
¹ØÓÚ²¥·ÅʵÏÖ£º
//²¥·Å±êÖ¾
private enum Flags
{
&n ......