Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ìá¸ßc#µÄÒªµã



Ìá¸ß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.¶à¶àѧϰ¡¢Ê¹Ó


Ïà¹ØÎĵµ£º

c#ÖÐÒ»¸ö´°Ìåµ÷ÓÃÁíÒ»¸ö´°ÌåµÄ¿Ø¼þ¼°·½·¨£¨×ªÌù£©

²Î¿¼×ÊÁÏ£ºhttp://wenwen.soso.com/z/q39607884.htm
ÈçºÎÔÚÒ»¸ö´°ÌåÖе÷ÓÃÁíÒ»¸ö´°ÌåµÄ¿Ø¼þ»ò·½·¨
´ð°¸ÊÇ´Ó¹¹Ô캯ÊýÖд«µÝ²ÎÊý¡£
Òª°ÑForm1ÖеĿؼä¸Ä³ÉpublicÊôÐÔ
¾ßÌåʵÏÖ¹ý³ÌÇë²Î¿´Ò»Ï´úÂë(ÔÚform2µÄtextbox1ÖÐÊäÈëÈ»ºóÔÚform1ÖеÄlabel1ÖÐÏÔʾtextboxÖеÄÄÚÈÝ
//form1´úÂë,form1ÖÐÓÐÒ»¸ölabel1ºÍÒ»¸öbutton1,Æä ......

C# ͼƬ²Ã¼ô

/// <summary>
/// ËõС²Ã¼ôͼƬ
/// </summary>
/// <param name="int_Width">ÒªËõС²Ã¼ôͼƬ¿í¶È</param>
/// <param name="int_Height">ÒªËõС²Ã¼ôͼƬ³¤¶È</param>
/// <param name="input_ImgUrl">Òª´¦ÀíͼƬ·¾¶< ......

c#¼òµ¥²Ù×÷×¢²á±í

Ò»¡¢Ê×ÏÈÏÈÌí¼ÓÒýÓà   using Microsoft.Win32;     
//ÒòΪ²Ù×÷×¢²á±íµÄÁ½¸öÀàRegistryKeyºÍRegistry¶¼°üº¬ÔÚ´ËÒýÓÃÖУ»
 
¶þ¡¢±àд´úÂ뿪ʼ²Ù×÷×¢²á±í
1¡¢ #region      ÏÞÖÆÈí¼þµÄʹÓôÎÊý
        pri ......

ÓÃC#Éú³ÉWAPÒ³Ãæ½éÉÜ

ÊÖ»úÉÏÍøÔ½À´Ô½ÆÕ¼°£¬ÊÖ»úÖÖÀàÔ½À´Ô½¶à£¬Òª¿ª·¢Ò»¸ö¹©ÊÖ»ú·ÃÎÊÍøÕ¾²¢¼æÈÝËùÓв»Í¬ÀàÐ͵ÄÊÖ»úºÍä¯ÀÀÆ÷ÊǺܲ»ÈÝÒ׵ģ¬±±¾©Ê¦·¶´óѧ×ÔÏ°ÊÒ²éѯƽ̨µÄÊÖ»ú°æ×î³õÊÇÖ±½ÓÓÃASP.NETʵÏֵģ¬Ö»ÊÇÓÃCSS¶¨Òå³ÉÁËÊʺÏÊÖ»úÆÁÄ»µÄÒ³Ã棬ËäȻͬѧÃÇ·ÃÎÊ»ù±¾Ã»ÓÐÎÊÌ⣬µ«ÊÇҲż¶û»áÓГ²»ÄÜÑ¡ÔñÏÂÀ­²Ëµ¥”¡¢“°´Å¥button²»Ä ......

sql c#

C-#ÈëÞ­µä(µÚÈý°æ).pdf
using System;
using System.Data;
using System.Data.SqlClient;
namespace My_Student
{
    static class Program
    {
       
        static void Main()
  &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ