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

C#ÃæÏò¶ÔÏó »ù´¡¸ÅÄî25¸ö

1.¾²Ì¬³ÉÔ±ºÍ·Ç¾²Ì¬³ÉÔ±µÄÇø±ð£¿
2.const ºÍ static readonly Çø±ð£¿
3.extern ÊÇʲôÒâ˼£¿
4.abstract ÊÇʲôÒâ˼£¿
5.internal ÐÞÊηûÆðʲô×÷Óã¿
6.sealed ÐÞÊηûÊǸÉʲôµÄ£¿
7.override ºÍ overload µÄÇø±ð£¿
8.ʲôÊÇË÷ÒýָʾÆ÷£¿
9.new ÐÞÊηûÊÇÆðʲô×÷Óã¿
10.this ¹Ø¼ü×ֵĺ¬Ò壿
11.¿ÉÒÔʹÓóéÏóº¯ÊýÖØд»ùÀàÖеÄÐ麯ÊýÂð£¿
12.ÃÜ·âÀà¿ÉÒÔÓÐÐ麯ÊýÂð£¿
13.ʲôÊÇÊôÐÔ·ÃÎÊÆ÷£¿
14.abstract ¿ÉÒÔºÍ virtual Ò»ÆðʹÓÃÂ𣿿ÉÒÔºÍ override Ò»ÆðʹÓÃÂð£¿
15.½Ó¿Ú¿ÉÒÔ°üº¬ÄÄЩ³ÉÔ±£¿
16.ÀàºÍ½á¹¹µÄÇø±ð£¿
17.½Ó¿ÚµÄ¶à¼Ì³Ð»á´øÀ´ÄÄЩÎÊÌ⣿
18.³éÏóÀàºÍ½Ó¿ÚµÄÇø±ð£¿
19.±ðÃûָʾ·ûÊÇʲô£¿
20.ÈçºÎÊÖ¹¤ÊÍ·Å×ÊÔ´£¿
21.P/InvokeÊÇʲô£¿
22.StringBuilder ºÍ String µÄÇø±ð£¿
23.explicit ºÍ implicit µÄº¬Ò壿
24.params ÓÐʲôÓã¿
25.ʲôÊÇ·´É䣿
ÒÔÏÂÊÇÎÒ×öµÄÒ»·Ý²Î¿¼´ð°¸£¨C# ÓïÑÔ·¶³ëÖ®ÄÚ£©£¬Èç¹ûÓв»×¼È·¡¢²»È«ÃæµÄ£¬»¶Ó­¸÷λÅóÓÑÖ¸Õý£¡
 
1.¾²Ì¬³ÉÔ±ºÍ·Ç¾²Ì¬³ÉÔ±µÄÇø±ð£¿
´ð£º
¾²Ì¬±äÁ¿Ê¹Óà static ÐÞÊηû½øÐÐÉùÃ÷£¬ÔÚÀ౻ʵÀý»¯Ê±´´½¨£¬Í¨¹ýÀà½øÐзÃÎÊ
²»´øÓÐ static ÐÞÊηûÉùÃ÷µÄ±äÁ¿³Æ×ö·Ç¾²Ì¬±äÁ¿£¬ÔÚ¶ÔÏó±»ÊµÀý»¯Ê±´´½¨£¬Í¨¹ý¶ÔÏó½øÐзÃÎÊ
Ò»¸öÀàµÄËùÓÐʵÀýµÄͬһ¾²Ì¬±äÁ¿¶¼ÊÇͬһ¸öÖµ£¬Í¬Ò»¸öÀàµÄ²»Í¬ÊµÀýµÄͬһ·Ç¾²Ì¬±äÁ¿¿ÉÒÔÊDz»Í¬µÄÖµ
¾²Ì¬º¯ÊýµÄʵÏÖÀï²»ÄÜʹÓ÷Ǿ²Ì¬³ÉÔ±£¬Èç·Ç¾²Ì¬±äÁ¿¡¢·Ç¾²Ì¬º¯ÊýµÈ
ʾÀý£º
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Example01
{
class Program
{
class Class1
{
public static String staticStr = "Class";
public String notstaticStr = "Obj";
}
static void Main(string[] args)
{
//¾²Ì¬±äÁ¿Í¨¹ýÀà½øÐзÃÎÊ£¬¸ÃÀàËùÓÐʵÀýµÄͬһ¾²Ì¬±äÁ¿¶¼ÊÇͬһ¸öÖµ
Console.WriteLine("Class1's staticStr: {0}", Class1.staticStr);
 
Class1 tmpObj1 = new Class1();
tmpObj1.notstaticStr = "tmpObj1";
Class1 tmpObj2 = new Class1();
tmpObj2.notstaticStr = "tmpObj2";
 
//·Ç¾²Ì¬±äÁ¿Í¨¹ý¶ÔÏó½øÐзÃÎÊ£¬²»Í¬¶ÔÏóµÄͬһ·Ç¾²Ì¬±äÁ¿¿ÉÒÔÓв»Í¬µÄÖµ
Console.WriteLine("tmpObj1's notstaticStr: {0}", tmpObj1.notstaticStr);
Console.WriteLine("tmpObj2's notstaticStr: {0}", tmpObj2.notstaticStr);
 
Console.ReadLine();
}
}
}
½


Ïà¹ØÎĵµ£º

c#(asp.net) updatepanel ¾Ö²¿Ë¢ÐÂʵÀýÊÕ²Ø

1
<asp:UpdatePanelID="UpdatePanel1"
        UpdateMode="Conditional"
        runat="server">
    <ContentTemplate>
        <asp:Button ID="Button1"
      ......

C# ²Ù×÷MySQLÊý¾Ý¿âµÄ¼òµ¥Àý×Ó

ʾÀýÑÝʾÁËÓÃC#²Ù×÷MySQLµÄ·½·¨£¬ÌṩÁËÈý¸ö¿ÉÖØÓõÄÀàMySqlDBUtil,MySqlPageUtil,Page¡£
±¾Ê¾ÀýÓÉ C#²Ù×÷AccessÊý¾Ý¿âµÄ¼òµ¥Àý×Ó£¨http://www.albertsong.com/read-56.html£©Ð޸ĶøÀ´¡£
1.Ê×ÏÈÏÂÔØMySQLÊý¾Ý¿âµÄ.NETÇý¶¯
http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.0.8.1-noinstall.zip/ ......

C#ÓëC/C++µÄÇø±ðµÄµØ·½


±àÒ룺C³ÌÐòÖ±½Ó±àÒë³É±ê×¼µÄ¶þ½øÖÆ¿ÉÖ´ÐеĴúÂ룬µ«C#µÄÔ´³ÌÐò²¢²»ÊDZ»±àÒë³É¶þ½øÖÆ¿ÉÖ´ÐеÄÐÎʽ£¬¶øÊÇÒ»ÖÖÖмäÓïÑÔ£¨MSIL£©£¬ÀàËÆJAVAÖеÄ×Ö½ÚÂë
½á¹¹Ì壺C#µÄ½á¹¹ÌåÓëC++µÄ½á¹¹ÌåÏàËÆ¡£µ«ÊÇC#µÄ½á¹¹ÌåÓëÀàÊDz»Í¬µÄ£¬¶øÇÒ²»Ö§³Ö¼Ì³Ð¡£
Ô¤±àÒ룺C#ÖдæÔÚÔ¤±àÒëµÄÖ¸ÁîÖ§³ÖÌõ¼þ±àÒ룬¾¯¸æ£¬´íÎ󱨸æºÍ±àÒëÐпØÖÆ¡£ÆäÖ¸Áî ......

C#СTip£ºXml²Ù×÷¼òÃ÷ÊÖ²á 3

3£©¶ÁÈ¡¡¢²éÕÒ
µ±ÄãÊÖÍ·ÓÐÒ»¸öxmlÎļþºó£¬¿ÉÒÔʹÓÃXmlDocument.Load()·½·¨½«Æä¼ÓÔؽøÀ´ÒԱ㴦Àí£¬ËùÒÔ“¶ÁÈ¡”ûÓÐʲô¿É˵µÄ¡£¶ø“²éÕÒ”²Ù×÷ÍùÍùÉæ¼°XPath£¬ÕâÀïÖ»ÊÇÎÒÈÏΪµÄ±È½Ï³£Óõ½µÄ²éÕÒ²Ù×÷£¬XPathÕâÍæÒâʵÔÚÊǺÜÇ¿´óºÜ±©Á¦¡£
 
»ØÍ·¿´Ê¾ÀýÎĵµxmlsample.xml£¬ÎÒÃÇ¿ÉÄÜÓöµ½ÕâÑùµÄÐèÇó£ ......

¹é½áÒ»ÏÂ×Ó:C#Ïß³Ìͬ²½µÄ¼¸ÖÖ²½Öè

ÎÒÃÇÔÚ±à³ÌµÄʱ·Ö£¬ÓÐʱ»áÔËÓöàÏß³ÌÀ´½â¾öÎÊÌ⣬ÀýÈçÄãµÄ³ÌÐò¼±ÐèÔÚºǫ́ÀÏ°å´¦ÖÃÒ»´ó¶ÑÊý¾Ý£¬µ«»¹ÒªÊ©Óû§½çÃæ¾ÓÓڿɲÙ×÷״̬£»»òÐíÄãµÄ³ÌÐòؽÐè·ÃÎÊһЩÍⲿ×ÊԴϤÊý¾Ý¿â»òÍøÂç×ÊÁϵȡ£ÕâЩ¾°¿öÄ㶼¿ÉÒÔ´´ÉèÒ»¸öÍ·Ïß³ÌÈ¥´¦Öã¬È»Ôò£¬¶àÏ̲߳»¿ÉÄæתµØ»á´ø»ØÒ»¸öÎÊÌ⣬ÄËÊÇÏß³Ìͬ²½µÄÎÊÌâ¡£ÈçÆäÕâ¸öÎÊÌâ´¦ÖÃÔã¸â£¬ÎÒÃǾͻá ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ