½Ó¿Ú£¨C# ²Î¿¼)
ÒÔÏ²ο¼ :http://msdn.microsoft.com/zh-cn/library/87d83y5b.aspx
½Ó¿Ú£¨C# ²Î¿¼£©
¸üУº2007 Äê 11 ÔÂ
½Ó¿ÚÖ»°üº¬·½·¨¡¢ÊôÐÔ¡¢Ê¼þ»òË÷ÒýÆ÷µÄÇ©Ãû¡£³ÉÔ±µÄʵÏÖÊÇÔÚʵÏÖ½Ó¿ÚµÄÀà»ò½á¹¹ÖÐÍê³ÉµÄ£¬ÈçÏÂÃæµÄʾÀýËùʾ£º
ʾÀý
interface ISampleInterface
{
void SampleMethod();
}
class ImplementationClass : ISampleInterface
{
// Explicit interface member implementation:
void ISampleInterface.SampleMethod()
{
// Method implementation.
}
static void Main()
{
// Declare an interface instance.
ISampleInterface obj = new ImplementationClass();
// Call the member.
obj.SampleMethod();
}
}
½Ó¿Ú¿ÉÒÔÊÇÃüÃû¿Õ¼ä»òÀàµÄ³ÉÔ±£¬²¢ÇÒ¿ÉÒÔ°üº¬ÏÂÁгÉÔ±µÄÇ©Ãû£º
·½·¨
ÊôÐÔ
Ë÷ÒýÆ÷
ʼþ
Ò»¸ö½Ó¿Ú¿É´ÓÒ»¸ö»ò¶à¸ö»ù½Ó¿Ú¼Ì³Ð¡£
µ±»ùÀàÐÍÁбí°üº¬»ùÀàºÍ½Ó¿Úʱ£¬»ùÀà±ØÐëÊÇÁбíÖеĵÚÒ»Ïî¡£
ʵÏÖ½Ó¿ÚµÄÀà¿ÉÒÔÏÔʽʵÏָýӿڵijÉÔ±¡£ÏÔʽʵÏֵijÉÔ±²»ÄÜͨ¹ýÀàʵÀý·ÃÎÊ£¬¶øÖ»ÄÜͨ¹ý½Ó¿ÚʵÀý·ÃÎÊ¡£
ÓйØÏÔʽ½Ó¿ÚʵÏֵĸü¶àÏêϸÐÅÏ¢ºÍ´úÂëʾÀý£¬Çë²Î¼ûÏÔʽ½Ó¿ÚʵÏÖ£¨C# ±à³ÌÖ¸ÄÏ£©¡£
ÏÂÃæµÄʾÀýÑÝʾÁ˽ӿÚʵÏÖ¡£ÔÚ´ËʾÀýÖУ¬½Ó¿Ú°üº¬ÊôÐÔÉùÃ÷£¬Àà°üº¬ÊµÏÖ¡£
interface IPoint
{
// Property signatures:
int x
{
get;
set;
}
int y
{
get;
set;
}
}
class Point : IPoint
{
// Fields:
private int _x;
private int _y;
// Constructor:
public Point(int x, int y)
{
_x = x;
_y = y;
}
// Property implementation:
p
Ïà¹ØÎĵµ£º
C#ÓëFlash½»»¥ £¨×ª×ÔСÀÚÔÚÏߣ©
C#ÓëFlash½»»¥
Ç°¶ÎÈÕ×Ó¹«Ë¾ÒªÇó×öÒ»¸öC#ÓëFlash½»»¥µÄ¶«Î÷£¬ÓÃÀ´C#Óë¶ÌÐÅèͨѶ½«Êý¾Ý´«µ½FlashÉÏÏÔʾÓë²Ù×÷µÄÓ¦Óá£
µÚÒ»²½C#Ìí¼Ó×é¼þ
´ò¿ªVS2005-¹¤¾ß-Ñ¡Ôñ¹¤¾ßÏäÏî-COM×é¼þ-Ñ¡ÔñShockwave Flash Object-È·¶¨
Ìí¼ÓºÃ×é¼þÍù³¡¾°ÉÏÍÏ·Å£¬Èç¹ûÌáʾע²áÐèÇó×¢²á
c# ×¢²á¿Ø¼þ-ÔÚÔËÐÐÊä ......
³ÌÐòÆô¶¯Sql ServerÆäʵºÜ¼òµ¥
´úÂ룺
System.ServiceProcess.ServiceController myController =
new System.ServiceProcess.ServiceController("MSSQL$ACCP4444"); //·þÎñÃû³Æ ÕÒÁË°ëÌì²ÅÕÒµ½£¬±¿ËÀÎÒÍêÁË¡£ÔÚ·þÎñÉÏÓÒ¼üÊôÐÔ£¬ÄÜ¿´µ½
if (myController.CanStop)
{ }
else ......
ÔÚASP.NetÒ»°ãµÄ³ÌÐò±àдÖУ¬ËùʹÓõÄÊý¾ÝÀïÃ棬ÈÕÆÚʱ¼äÊÇÒ»ÖÖÌØÊâµÄÊý¾ÝÀàÐÍ£¬Ò²ÊǾ³£±»Ê¹Óõġ£---µçÄԽ̳̼¼ÊõѧϰÍø
ÔÚVisual Basic.NETÖеÄÈÕÆÚʱ¼äÊý¾ÝÓÃÊýÖµµÄÊý¾ÝÀàÐͱ£´æ£¬¶øÇÒÓз¶Î§¡£
ÈÕÆڵķ¶Î§Êǹ«Ôª1Äê1ÔÂ1ÈÕ¡«¹«Ôª9999Äê1 2ÔÂ3 1ÈÕ£¬Ê±¼äµÄ·¶Î§ÊÇ00£º00£º00¡«23£º59£º59¡£ÉùÃ÷¸ñÊ½È ......
ÐèÒªÒýÓõÄÀàÃû¿Õ¼ä
using System.Security.Cryptography;
using System.IO;
using System.text;
/// <summary>
/// ¼ÓÃÜ
// ......