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

c# using ¹Ø¼ü×ÖµÄÓ÷¨


ÔÚnetÖÐÓÐÒ»¸öÖÁ¹ØÖØÒªµÄ¹Ø¼ü×Ö£¬ÄǾÍÊÇusing
usingÒ»°ãÓÐ×ÅÒÔϼ¸ÖÖÓ÷¨£º
1¡¢Ö±½ÓÒýÈëÃüÃû¿Õ¼ä
a¡¢using System £¬Õâ¸öÊÇ×î³£Óõģ¬¾ÍÊÇusing+ÃüÃû¿Õ¼ä£¬ÕâÑù¾Í¿ÉÒÔÖ±½ÓʹÓÃÃüÃû¿Õ¼äÖеÄÀàÐÍ£¬¶øÃâÈ¥ÁËʹÓÃÏêϸµÄÃüÃû¿Õ¼ä
b¡¢Ê¹ÓÃÈ«ÏÞ¶¨Ãû
²»ÓÃʹÓÃusing System;Ö±½ÓÔÚ³ÌÐòÖе÷ÓÃSystem.Console.WriteLine("Hello C#");
µÚÒ»ÖÖ·½·¨ÊDZȽϳ£Óõķ½·¨£¬¿ÉÒÔÒ»´Îµ¼ÈëÕû¸öÃüÃû¿Õ¼äµ½µ±Ç°ÃüÃû¿Õ¼ä£¬±È½Ï·½±ã¡£
²»¹ýÈç¹ûÔÚµ±Ç°ÃüÃû¿Õ¼äֻʹÓÃÒ»´ÎÃüÃû¿Õ¼äÖеÄij¸öÀ࣬ÀýÈçÉÏÀýʹÓÃÈ«ÏÞ¶¨ÃûÒ²ÊǺÏÊʵġ£
²»¹ýÔÚijЩÇé¿öϱØÐëʹÓÃÈ«ÏÞ¶¨Ãû£¬±ÈÈçÔÚÒýÈëµÄÁ½¸öÒÔÉϵÄÃüÃû¿Õ¼äÖÐÓÐÖØÃûµÄÀ࣬ÀýÈçSystemÏÂÓÐÒ»¸öConsoleÀ࣬ÔÚÁíÒ»¸ö×Ô¶¨ÒåµÄÃüÃû¿Õ¼äMyNamespaceÖÐÒ²ÓÐÒ»¸öͬÃûµÄConsoleÀ࣬ÕâʱÈç¹ûÎÒÃÇÔÚµÚÈý¸öÃüÃû¿Õ¼äÖÐͬʱÒýÈëÁËSystemºÍMyNamespace£¬ÕâʱÈç¹ûҪʹÓÃijһ¸ö¾ßÌåµÄConsole¾ÍÐèҪʹÓÃȨÏÞ¶¨ÃûSystem.Console »ò MyNamespace.Console£¬·ñÔò±àÒëÆ÷²»ÖªµÀÎÒÃǾßÌåʹÓÃÄÄÒ»¸öConsole£¬±àÒëÎÞ·¨Í¨¹ý¡£
2.using±ðÃû¡£using + ±ðÃû = °üÀ¨ÏêϸÃüÃû¿Õ¼äÐÅÏ¢µÄ¾ßÌåµÄÀàÐÍ¡£
ÀýÈçÎÒÃÇÓÃÒÔÏÂÓï¾äÒýÈëSystem.IO.CompressionÃüÃû¿Õ¼ä£º
using Zip=System.IO.Compression;
ÕâʱÎÒÃǾͿÉÒÔÓÃZip±íʾSystem.IO.CompressionÃüÃû¿Õ¼ä£¬Ê¹ÓÃZip.GZipStream¾ÍÊÇʹÓÃSystem.IO.Compression.GZipStream¡£¸ø³ÌÐòÊéд´øÀ´·½±ã¡£
ÕâÖÖ×ö·¨ÓиöºÃ´¦¾ÍÊǵ±Í¬Ò»¸öcsÒýÓÃÁËÁ½¸ö²»Í¬µÄÃüÃû¿Õ¼ä£¬µ«Á½¸öÃüÃû¿Õ¼ä¶¼°üÀ¨ÁËÒ»¸öÏàͬÃû×ÖµÄÀàÐ͵Äʱºò¡£µ±ÐèÒªÓõ½Õâ¸öÀàÐ͵Äʱºò£¬¾Íÿ¸öµØ·½¶¼ÒªÓÃÏêϸÃüÃû¿Õ¼äµÄ°ì·¨À´Çø·ÖÕâЩÏàͬÃû×ÖµÄÀàÐÍ¡£¶øÓñðÃûµÄ·½·¨»á¸ü¼ò½à£¬Óõ½ÄĸöÀà¾Í¸øÄĸöÀà×ö±ðÃûÉùÃ÷¾Í¿ÉÒÔÁË¡£×¢Ò⣺²¢²»ÊÇ˵Á½¸öÃû×ÖÖظ´£¬¸øÆäÖÐÒ»¸öÓÃÁ˱ðÃû£¬ÁíÍâÒ»¸ö¾Í²»ÐèÒªÓñðÃûÁË£¬Èç¹ûÁ½¸ö¶¼ÒªÊ¹Óã¬ÔòÁ½¸ö¶¼ÐèÒªÓÃusingÀ´¶¨Òå±ðÃûµÄ¡£
ÀýÈ磺
using System;
using aClass = NameSpace1.MyClass;
using bClass = NameSpace2.MyClass;
namespace NameSpace1  
{
         public class MyClass  
         {
             public override string ToString()  
             {
  &nb


Ïà¹ØÎĵµ£º

C#ºÍJavaÖеķ½·¨×¢Ï¤

·Ç³£¼òµ¥,ÔÚC#ÖÐÖ»ÐèÒªÔÚÀàµÄ·½·¨µÄÉÏ·½ÇÃÈýÏÂ"/"¾Í×Ô¶¯°ïÄãÌí¼ÓÏà¹ØµÄ´úÂë,ÄãÖ»Òª°´×ÅÌîд¾Í¿ÉÒÔÁË,¶øJavaÔòÊÇÊäÈë"/**",ËüÒ²»á×Ô¶¯ÐγÉÏà¹Ø´úÂë,¾ßÌå´úÂëÈçÏÂ:
C#
/// <summary>
/// ÔÚ´ËÌîд×ÜÌåÃèÊö
///</summary>
/// <param name="name">ÕâÀïÌîд²ÎÊýnameµÄÃèÊö</param>
public string ......

C# ͨ¹ýado.net ·ÃÎÊoracle

1.°²×°ODP£¨oracle data provider£©
2.È»ºóÔÚÏîÄ¿ÖÐÒýÓà Oracle.DataAccess³ÌÐò¼¯
3.½Ó×Å
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
4.È»ºó±àд³ÌÐòºÍado.net·½Î»sqlserver ²î±ð²»´óÁË£¬¾ÍÊÇÀûÓÃÏÂÃæµÄ¶ÔÏó½øÐбà³Ì£¬µ±È»£¬ÒòΪoracleºÍsqlserverÓкܶàµØ·½²»Ò»Ñù£¬ËùÒÔϸ½Ú´æÔںܴó²îÒì¡£
O ......

²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É

²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É:
ÓÃcsdn blog API ·¢²¼.
ÏÂÃæÊÇ:
public class HtmlWriter
{
   static Dictionary _colors;
   static int _colorNum;
   static StringBuilder _colorString;

½«TXTÎĵµÖÐÊý¾Ýµ¼ÈëXMLÎļþÖÐ C#

¶ÔÓÚ½«TXTÎĵµÖÐÊý¾Ýµ¼ÈëXMLÖеijÌÐòÍøÉϲ»¶à£¬µ«ÊÇÓкܶàÊÇÏȽ«TXTµ¼Èëµ½DataSetÖУ¬ÔÚÓÃXML½øÐд«Êä¡£ËùÒÔ±¾È˾ÍÔÚÕâÀïÓë´ó¼Ò·ÖÏíÒ»ÏÂÖ±½Óµ¼ÈëµÄÕâÖÖ·½Ê½¡£
±¾³ÌÐòÒ²¿ÉÒÔÓ¦ÓÃÓÚASP.NETÖУ¬ÄÇôÏÂÃæµÄÃüÃû¿Õ¼ä¼°Ò»Ð©µØ·½¾ÍµÃ¸Ä¸ÄÁË£¬»¹ÓÐÒª½«³ÌÐò¶¼·ÅÓÚPage_LoadÖС£
using System;
using System.Collections.Generic; ......

C#ÕýÔò±í´ïʽ±à³Ì£¨¶þ£©£ºRegexÀàÓ÷¨

C#ÕýÔò±í´ïʽ±à³Ì£¨¶þ£©£ºRegexÀàÓ÷¨ 
 
¶ÔÓÚÕýÔò±í´ïʽµÄÓ¦Ó㬻ù±¾ÉÏ¿ÉÒÔ·ÖΪÑéÖ¤¡¢ÌáÈ¡¡¢·Ö¸îºÍÌæ»»¡£½ö½öÀûÓÃRegexÀà¾Í¿ÉÒÔʵÏÖÑéÖ¤ºÍ¼òµ¥Ìæ»»¡£
ÀûÓÃRegexÀàʵÏÖÑéÖ¤
¾­Àú2009ÄêµÄ±¸°¸ºÍDNSÍ£Ö¹½âÎö·ç²¨Ö®ºó£¬´ó²¿·ÖµÄ´øÓз´À¡ÐÔµÄÍøÕ¾ºÍÂÛ̳¶¼¶ÔһЩÃô¸Ð´Ê½øÐÐÁ˹ýÂË£¬°üº¬ÓÐÕâÀàÃô¸Ð´ÊµÄÎÄÕÂҪôÄÚÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ