c#³£¼ûÒì³£47¸ö
1 ArgumentException ÔÚÏò·½·¨ÌṩµÄÆäÖÐÒ»¸ö²ÎÊýÎÞЧʱÒý·¢µÄÒì³£
2 AppDomainUnloadedException ÔÚ³¢ÊÔ·ÃÎÊÒÑжÔصÄÓ¦ÓóÌÐòÓòʱÒý·¢µÄÒì³£
3 ArithmeticException ÒòËãÊõÔËËã¡¢ÀàÐÍת»»»òת»»²Ù×÷ÖеĴíÎó¶øÒý·¢µÄÒì³£
4 ArrayTypeMismatchException µ±ÊÔͼÔÚÊý×éÖд洢ÀàÐͲ»ÕýÈ·µÄÔªËØʱÒý·¢µÄÒì³£
5 BadImageFormatException µ± DLL »ò¿ÉÖ´ÐгÌÐòµÄÎļþͼÏñÎÞЧʱÒý·¢µÄÒì³£
6 CannotUnloadAppDomainException жÔØÓ¦ÓóÌÐòÓòµÄ³¢ÊÔʧ°ÜʱÒý·¢µÄÒì³£
7 CodeDomSerializerException µ±ÐкÅÐÅÏ¢¿ÉÓÃÓÚÐòÁл¯´íÎóʱÒý·¢µÄÒì³£
8 LicenseException ±íʾµ±×é¼þ²»Äܱ»ÊÚÓèÐí¿É֤ʱÒý·¢µÄÒì³£
9 WarningException Ö¸¶¨°´¾¯¸æ£¨¶ø²»ÊÇ´íÎ󣩴¦ÀíµÄÒì³£
10 ConfigurationException ÅäÖÃÉèÖÃÖз¢Éú´íÎóʱÒý·¢µÄÒì³£
11 InstallException ÔÚ°²×°µÄÌá½»¡¢»Ø¹ö»òжÔؽ׶η¢Éú´íÎóʱÒý·¢µÄÒì³£
12 ContextMarshalException ÔÚ³¢ÊÔ½«¶ÔÏó·âË͹ýÉÏÏÂÎı߽çʧ°ÜʱÒý·¢µÄÒì³£
13 DataException ±íʾʹÓà ADO.NET ×é¼þ·¢Éú´íÎóʱÒý·¢µÄÒì³£
14 DBConcurrencyException ÔÚ¸üвÙ×÷¹ý³ÌÖÐÊÜÓ°ÏìµÄÐÐÊýµÈÓÚÁãʱ£¬ÓÉ DataAdapter ËùÒý·¢µÄÒì³£
15 SqlException µ± SQL Server ·µ»Ø¾¯¸æ»ò´íÎóʱÒý·¢µÄÒì³£¡£ÎÞ·¨¼Ì³Ð´ËÀà
16 InvalidPrinterException ±íʾµ±ÊÔͼÓÃÎÞЧµÄ´òÓ¡»úÉèÖÃÀ´·ÃÎÊ´òÓ¡»úʱËùÒý·¢µÄÒì³£
17 RegistrationException ¼ì²âµ½×¢²á´íÎóʱÒý·¢µÄÒì³£
18 FormatException µ±²ÎÊý¸ñʽ²»·ûºÏµ÷Óõķ½·¨µÄ²ÎÊý¹æ·¶Ê±Òý·¢µÄÒì³£
19 IndexOutOfRangeException ÊÔͼ·ÃÎÊË÷Òý³¬³öÊý×é½çÏÞµÄÊý×éÔªËØʱÒý·¢µÄÒì³£
20 InvalidCastException ÒòÎÞЧÀàÐÍת»»»òÏÔʽת»»Òý·¢µÄÒì³£
21 InvalidOperationException µ±·½·¨µ÷ÓöÔÓÚ¶ÔÏóµÄµ±Ç°×´Ì¬ÎÞЧʱÒý·¢µÄÒì³£
22 InternalBufferOverflowException ÄÚ²¿»º³åÇøÒç³öʱÒý·¢µÄÒì³£
23 IOException ·¢Éú I/O ´íÎóʱÒý·¢µÄÒì³£
Ïà¹ØÎĵµ£º
C#ÓëFlash½»»¥ £¨×ª×ÔСÀÚÔÚÏߣ©
C#ÓëFlash½»»¥
Ç°¶ÎÈÕ×Ó¹«Ë¾ÒªÇó×öÒ»¸öC#ÓëFlash½»»¥µÄ¶«Î÷£¬ÓÃÀ´C#Óë¶ÌÐÅèͨѶ½«Êý¾Ý´«µ½FlashÉÏÏÔʾÓë²Ù×÷µÄÓ¦Óá£
µÚÒ»²½C#Ìí¼Ó×é¼þ
´ò¿ªVS2005-¹¤¾ß-Ñ¡Ôñ¹¤¾ßÏäÏî-COM×é¼þ-Ñ¡ÔñShockwave Flash Object-È·¶¨
Ìí¼ÓºÃ×é¼þÍù³¡¾°ÉÏÍÏ·Å£¬Èç¹ûÌáʾע²áÐèÇó×¢²á
c# ×¢²á¿Ø¼þ-ÔÚÔËÐÐÊä ......
ÔÚasp.netÏîÄ¿ÖеÄÒ»¸ö°ÑÊý¾Ý µ¼³öExcel±í¸ñµÄСʼþÈçÏ£º
protected void ibnOut_Click(object sender, ImageClickEventArgs e)//µ¼³öExcel°´Å¥µÄµã»÷ʼþ
{
GridView2.DataSource = dt ......
ÎÞÒâÖп´µ½ref¹Ø¼ü×Ö£¬Ö»¼ÇµÃÒ»¿ªÊ¼Ñ§Ï°C#µÄʱºò£¬ÓкܶණÎ÷¶¼Ìø¹ýÈ¥ÁË¡£ ½ñÌì¸Õ¿´¼ûÕâ¸ö¹Ø¼ü×ÖµÄʱºò£¬»¹Õæ²»ÖªµÀËüÓÐʲôÌرðµÄµØ·½¡£googleÁËһϣ¬ÕÒµ½Ò»Æª½âÊÍµÄ±È½Ï ºÃµÄÎÄÕ¡£ÈçÏ£º C# ÖеıäÁ¿ C# ÖеÄÊý¾ÝÓÐÁ½ÖÖÀàÐÍ£ºÒýÓÃÀàÐÍ£¨reference types£©ºÍÖµÀàÐÍ£¨value types£©¡£ ¼òµ¥ÀàÐÍ£¨°üÀ¨int, long, doubleµÈ£ ......
¿´Á˺ܶà.°´ÕÕ ×Ô¼ºÃ÷°×½âÊÍһϠ.NET RefºÍOut¹Ø¼ü×Ö ¶ÔÓÚÖµÀàÐÍ¡£ Èç¹û²»Ê¹ÓÃref /outÔò´«µÝµÄÖ»ÊÇÕâЩֵµÄCOPY, ʹÓÃÁËRefºÍOutµÄЧ¹û¾Í¼¸ºõºÍCÖÐʹÓÃÁËÖ¸Õë±äÁ¿Ò»Ñù¡£(´«µÝµÄ¾ÍÊÇÔÖµ),ËüÄܹ»ÈÃÄãÖ±½Ó¶ÔÔÊý½øÐвÙ×÷£¬¶ø²»ÊǶÔÄǸöÔÊýµÄCopy½øÐвÙ×÷ ¶ÔÓÚÒýÓÃÀàÐÍ: Èç¹û²»Ê¹ÓÃref /out,ÒòΪ´«µÝµÄÊÇÒýÓÃÀàÐ͵ĵØÖ·Öµ,Ô ......
ËØÊýÊÇÖ»Äܱ»1»ò±¾ÉíÕû³ý£¬ÇÒ²»ÄÜΪÆäËûÁ½¸öÕûÊýµÄ³Ë»ý¡£1¡¢2¡¢3±¾Éí¾ÍÊÇËØÊý£¬ÅжÏÒ»¸öÊýÊÇ·ñΪËØÊý£¬Ö»ÐèÒªÓÃÕâ¸öÖµÒÀ´Î³ýÒÔ2µ½ËüµÄ¿ª·½Êý£¬Èç¹ûÆäÖÐÓÐÒ»¸öÊý¿ÉÒÔÕû³ý£¬ÄÇô¸ÃÖµ²»ÎªËØÊý£¬·µÖ®ÎªËØÊý¡£´úÂëÈçÏÂ
publicboolprimeNumber(intn)
{
¡¡¡¡boolb=true;
¡¡¡¡if(n==1||n==2)
¡¡¡¡¡¡¡¡b=true;
¡¡¡¡else
¡¡¡¡{ ......