锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av成人一区二区三区在线播放 ,亚洲中文字幕无码爆乳AV,久久亚洲精品无码播放http://www.tkk7.com/rorely/category/41902.html瀛︿範瓚寵抗zh-cnWed, 28 Oct 2009 03:38:03 GMTWed, 28 Oct 2009 03:38:03 GMT60C# 鍖垮悕綾葷殑瀹氫箟http://www.tkk7.com/rorely/archive/2009/10/26/299833.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 12:00:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299833.htmlhttp://www.tkk7.com/rorely/comments/299833.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299833.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299833.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299833.html 濡傦細var val=new{StrVal="a String",IntVal=12};
val.StrVal
val.IntVal
val.ToString()

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnonymousClass
{
    
class Program
    {
        
static void Main(string[] args)
        {
            
//瀹氫箟鍖垮悕綾?/span>
            var val = new { StrVal = "HelloWorld", IntVal = 200 };
            System.Console.WriteLine(
"first variable is: {0};  theSecondVariable is:{1}",val.StrVal,val.IntVal);
            System.Console.WriteLine(
"val.ToString() is:{0}",val.ToString());
            System.Console.ReadLine();

        }
    }
}

緇撴灉錛?br />
first variable is: HelloWorld;  theSecondVariable is:200
val.ToString() is:{ StrVal = HelloWorld, IntVal = 200 }





鏈熷緟鏄庡ぉ 2009-10-26 20:00 鍙戣〃璇勮
]]>
寮傚父綾籈xceptionhttp://www.tkk7.com/rorely/archive/2009/10/26/299831.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 11:06:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299831.htmlhttp://www.tkk7.com/rorely/comments/299831.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299831.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299831.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299831.html鈻燛xception綾葷殑涓昏鎴愬憳錛?br /> Exception:鏋勯犲嚱鏁幫紝鏋勯犱竴涓紓甯哥被錛屽埗瀹氬叾寮傚父娑堟伅錛屽彂鐢熶綅緗?br /> Message錛氬彧璇誨睘鎬э紝鑾峰彇褰撳墠寮傚父鎻愪緵鐨勬秷鎭紝璇ユ秷鎭湪鏋勯犲紓甯告椂鎸囧畾
Source錛氳鍐欏睘鎬э紝鑾峰彇鍜岃緗紩璧瘋寮傚父鐨勫簲鐢ㄧ▼搴忔垨瀵硅薄鐨勫悕縐?br /> TargetSite錛氬彧璇誨睘鎬э紝鑾峰彇寮曞彂璇ュ紓甯哥殑鏂規硶
ToString錛氬叕寮鏂規硶錛屽垱寤鴻寮傚父鐨勫瓧絎︿覆琛ㄧず褰㈠紡錛屽寘鎷紓甯稿彂鐢熺殑浣嶇疆錛屽悕縐扮瓑淇℃伅

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThrowException
{
    
class Program
    {
        
static void Main(string[] args)
        {
            
try {
                ThrowAnException();
            }
catch(Exception e){
                ShowException(e);
            }
            System.Console.ReadLine();
        }
        
static void ThrowAnException() {
            
throw new Exception("This is an Exception!");
        }
        
static void ShowException(Exception e) {
            System.Console.WriteLine(
"An Exception information:");
            System.Console.WriteLine(
"Type:{0}  ",e.GetType().Name);
            System.Console.WriteLine(
"Message:{0}",e.Message);
            System.Console.WriteLine(
"Source:{0}",e.Source);
            System.Console.WriteLine(
"TargetSite:{0}",e.TargetSite);
            System.Console.WriteLine(
"ToString:{0}",e.ToString());
            System.Console.WriteLine(
"StackTrace:{0}",e.StackTrace);
        }
    }
}


緇撴灉錛?br /> An Exception information:
......Type:Exception
......Message:This is an Exception!
......Source:ThrowException
......TargetSite:Void ThrowAnException()
......ToString:System.Exception: This is an Exception!
   鍦?ThrowException.Program.ThrowAnException() 浣嶇疆 g:"TrueStudy"cSharp"project
s"ConsoleAppl"ThrowException"Program.cs:琛屽彿 20
   鍦?ThrowException.Program.Main(String[] args) 浣嶇疆 g:"TrueStudy"cSharp"projec
ts"ConsoleAppl"ThrowException"Program.cs:琛屽彿 13
......StackTrace:   鍦?ThrowException.Program.ThrowAnException() 浣嶇疆 g:"TrueStu
dy"cSharp"projects"ConsoleAppl"ThrowException"Program.cs:琛屽彿 20
   鍦?ThrowException.Program.Main(String[] args) 浣嶇疆 g:"TrueStudy"cSharp"projec
ts"ConsoleAppl"ThrowException"Program.cs:琛屽彿 13





鏈熷緟鏄庡ぉ 2009-10-26 19:06 鍙戣〃璇勮
]]>
C#寮傚父http://www.tkk7.com/rorely/archive/2009/10/26/299825.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 10:47:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299825.htmlhttp://www.tkk7.com/rorely/comments/299825.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299825.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299825.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299825.html鈻犲紓甯鎬笌閿欒
寮傚父鏄彲棰勮錛屽彲鎺ュ彈鐨勶紝紼嬪簭閫氳繃瀵瑰紓甯哥殑鎹曡幏鍜屽鐞嗗彲浠ュ皢寮傚父甯︽潵鐨勫獎鍝嶅噺灝忓埌鏈灝忥紱
閿欒鏄▼搴忎唬鐮佺殑閿欒錛岃璁℃紡媧烇紝鏄笉鍙瑙佺殑錛屼細緇欒蔣浠跺甫鏉ヨ嚧鍛界殑褰卞搷
鈻犳崟鑾峰紓甯革細try...catch
鈻犳姏鍑哄紓甯?throw璇彞

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace useException
{
    
class Program
    {
        
static void Main(string[] args)
        {
            
int val;
            
for (int i = -3; i < 12; i++) {
                
try {
                    val
=GetValue(i);
                    System.Console.WriteLine(
"val:{0}",val);
                }
catch(Exception e){
                    System.Console.WriteLine(
"exception:{0}: ",e.Message);
                }                
            }
            System.Console.ReadLine();
        }
        
static int GetValue(int index)
        {
            
int[] ary = {0,1,2,3,4,5,6,7,8 };
            
if (index < 0) {
                System.Console.Write(
"index={0}   ",index);
                
throw new Exception("index<0");
            }
            
if (index > 8){
                System.Console.Write(
"index={0}    ", index);
                
throw new Exception("index>8");
            }
            
return ary[index];
        }
    }
}

緇撴灉錛?br />
index=-3   exception:index<0:
index=-2   exception:index<0:
index=-1   exception:index<0:
val:0
val:1
val:2
val:3
val:4
val:5
val:6
val:7
val:8
index=9    exception:index>8:
index=10    exception:index>8:
index=11    exception:index>8:




鏈熷緟鏄庡ぉ 2009-10-26 18:47 鍙戣〃璇勮
]]>
C# 鎺ュ彛http://www.tkk7.com/rorely/archive/2009/10/26/299821.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 10:21:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299821.htmlhttp://www.tkk7.com/rorely/comments/299821.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299821.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299821.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299821.html interface IMovable{
    float speed{get;}
    float maxSpeed{get;set;}
    void Run()錛?br />     void Walk();
    void Fly();
}
鈻犳帴鍙g殑瀹炵幇錛岄氳繃鍐掑彿鏉ュ疄鐜?br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace useInterface
{
    
interface IMovable {
        
float Speed{get;}
        
float MaxSpeed { get; set; }
        
void Run();
        
void Walk();
        
void Fly();
    }
    
class Dog : IMovable {
        
public float Speed {
            get {
                
return 10.5f;
            }
        }
        
private float _MaxSpeed;
        
public float MaxSpeed{
            get { 
return this._MaxSpeed; }
            set { 
this._MaxSpeed = value; }
        }
        
public void Run() {
            System.Console.WriteLine(
"Dog is running");
        }
        
public void Walk()
        {
            System.Console.WriteLine(
"Dog is walking");
        }
        
public void Fly()
        {
            System.Console.WriteLine(
"Dog can't fly");
        }

    }
    
class Person : IMovable
    {
        
public float Speed
        {
            get
            {
                
return 20.5f;
            }
        }
        
private float _MaxSpeed;
        
public float MaxSpeed
        {
            get { 
return this._MaxSpeed; }
            set { 
this._MaxSpeed = value; }
        }
        
public void Run()
        {
            System.Console.WriteLine(
"Person is running");
        }
        
public void Walk()
        {
            System.Console.WriteLine(
"Person is walking");
        }
        
public void Fly()
        {
            System.Console.WriteLine(
"Person flies with a plane");
        }

    }
    
class Program
    {
        
static void SthMove(IMovable mov) {
            string type 
= mov.GetType().Name;
            System.Console.WriteLine(
"This is a {0} ",type);
            System.Console.WriteLine(
"{0}.Speed={1}",type,mov.Speed);
            System.Console.WriteLine(
"{0}.MaxSpeed={1}", type, mov.MaxSpeed);
            mov.Walk();
            mov.Run();
            mov.Fly();
        }
        
static void Main(string[] args)
        {
            Person aPerson 
= new Person();
            aPerson.MaxSpeed 
= 50;
            SthMove(aPerson);
            IMovable mov 
= new Dog();
            mov.MaxSpeed 
= 20;
            SthMove(mov);
            System.Console.ReadLine();
        }
    }
}

緇撴灉錛?br />
This is a Person
Person.Speed=20.5
Person.MaxSpeed=50
Person is walking
Person is running
Person flies with a plane
This is a Dog
Dog.Speed=10.5
Dog.MaxSpeed=20
Dog is walking
Dog is running
Dog can't fly



涓涓被鍙互瀹炵幇澶氫釜鎺ュ彛銆傚鏈変袱涓帴鍙Movable錛孖Speakable錛屽畾涔変竴涓狿erson綾繪潵瀹炵幇榪欎袱涓帴鍙?br /> class Person:IMovable,ISpeakable


鏈熷緟鏄庡ぉ 2009-10-26 18:21 鍙戣〃璇勮
]]>
C#浜嬩歡http://www.tkk7.com/rorely/archive/2009/10/26/299799.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 08:31:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299799.htmlhttp://www.tkk7.com/rorely/comments/299799.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299799.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299799.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299799.html 浣跨敤浜嬩歡涔嬪墠錛岄鍏堝湪闇瑕佷笂鎶ョ殑綾諱腑澹版槑涓涓簨浠訛紝閫氬父鍖呭惈涓や釜姝ラ錛?br /> (1)瀹氫箟涓涓鎵樼被鍨嬶紙EventHandler錛夎〃紺烘椂闂村鐞嗗嚱鏁扮殑綾誨瀷
(2)鍦ㄧ被涓敤鍏抽敭瀛梕vent澹版槑涓涓狤ventHandler綾誨瀷鐨勪簨浠訛紝浜嬩歡鍚屾牱鍏鋒湁璁塊棶鎬э紝閫氬父涓簆ublic

delegate void MyEventHandler(Object sender,EventArgs e)
class EventClass{
    public event MyEventHandler MyEvent;
}
鈻犳敞鍐屽拰娉ㄩ攢浜嬩歡
涓涓被鐨勪嬌鐢ㄨ呴渶瑕佸鐞嗙被鐨勪簨浠訛紝閫氬父闇瑕?涓楠わ細
(1)涓鴻澶勭悊鐨勪簨浠跺鍔犲鐞嗗嚱鏁?br /> (2)灝嗕簨浠跺鐞嗗嚱鏁伴氳繃+=榪愮畻絎︽敞鍐屽埌瑕佸鐞嗙殑浜嬩歡
(3)澶勭悊瀹屾垚鍚庯紝閫氳繃-=榪愮畻絎︽敞閿涓嶉渶瑕佺殑浜嬩歡澶勭悊鍑芥暟
鈻?br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EventDelegate
{
    delegate 
void MyEventHandler(Object sender,EventArgs e);
    
class EventClass {
        
public event MyEventHandler MyEvent;
        
protected void OnMyEvent(EventArgs e) {
            System.Console.WriteLine(
"EventClass:Ready to fire a MyEvent");
            
if (this.MyEvent != null) {
                System.Console.WriteLine(
"EventClass:fire a MyEvent");
                
this.MyEvent(this, e);
            }
        }
        
public void FireEvent() {
            
this.OnMyEvent(EventArgs.Empty);
        }
    }
    
class Program
    {
        
static void GetAEvent(object sender, EventArgs e) {
            System.Console.WriteLine(
"GetAEvent:Get a Event EventClass.MyEvent");
        }
        
static void Main(string[] args)
        {
            EventClass eventClass 
= new EventClass();
            eventClass.MyEvent 
+= new MyEventHandler(GetAEvent);
            eventClass.FireEvent();
            eventClass.MyEvent 
-= new MyEventHandler(GetAEvent);
            eventClass.FireEvent();
            System.Console.ReadLine();
        }
    }
}

榪愯緇撴灉錛?br />
EventClass:Ready to fire a MyEvent
EventClass:fire a MyEvent
GetAEvent:Get a Event EventClass.MyEvent
EventClass:Ready to fire a MyEvent





鏈熷緟鏄庡ぉ 2009-10-26 16:31 鍙戣〃璇勮
]]>
C#鍑芥暟濮旀墭http://www.tkk7.com/rorely/archive/2009/10/26/299790.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 07:59:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299790.htmlhttp://www.tkk7.com/rorely/comments/299790.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299790.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299790.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299790.html 濮旀墭錛岄氳繃delegate鍏抽敭瀛楁潵澹版槑錛岄氳繃new錛?=,-=榪愮畻絎︿負鍏跺垎閰嶅嚱鏁般?br /> delegate void StrParaFunc(int no,string str);//瀹氫箟涓涓鎵橈紝娌℃湁榪斿洖鍊鹼紝渚濇鍖呭惈涓や釜鏁版嵁綾誨瀷涓篿nt鍜宻tring鐨勫弬鏁?br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace useDelegate
{
    
class Program
    {
        
/// <summary>
        /// 瀹氫箟濮旀墭
        /// </summary>
        /// <param name="no"></param>
        /// <param name="str"></param>
        delegate void StrParaFunc(int no, string str);

        
static void PrintString(int no, string str) {
            System.Console.WriteLine(
"{0}:PrintString:{1}",no,str);
        }
        
static void ShowString(int no, string str)
        {
            System.Console.WriteLine(
"{0}:ShowString:{1}", no, str);
        }
        
static void Main(string[] args)
        {
            
//閫氳繃new鍒濆鍖栧鎵?/span>
            System.Console.WriteLine("**********************");
            StrParaFunc spfHandler1 
= new StrParaFunc(PrintString);
            System.Console.WriteLine(
"絎竴涓鎵樺璞★紝鏈?涓紩鐢ㄥ嚱鏁幫細");
            spfHandler1(
1,"a string 1");//濮旀墭綾誨瀷涓湁涓涓紩鐢ㄥ嚱鏁幫紝緇撴灉鏈?涓?nbsp;   
            System.Console.WriteLine("**********************");
            
            spfHandler1 
+= ShowString;//閫氳繃+=澧炲姞寮曠敤鍑芥暟
            System.Console.WriteLine("絎竴涓鎵樺璞★紝澧炲姞浜嗕竴涓紩鐢ㄥ嚱鏁幫紝鍏?涓紩鐢ㄥ嚱鏁幫細");
            spfHandler1(
2,"a string 2");//濮旀墭涓湁涓や釜寮曠敤鍑芥暟錛岀粨鏋滄湁2涓?nbsp;      
            System.Console.WriteLine("**********************");

            spfHandler1 
-= PrintString; //閫氳繃-=縐婚櫎寮曠敤鍑芥暟      
            System.Console.WriteLine("絎竴涓鎵樺璞★紝鍑忓皯浜嗕竴涓紩鐢ㄥ嚱鏁幫紝鍓?涓紩鐢ㄥ嚱鏁幫細");
            spfHandler1(
3"a string 3"); //濮旀墭涓湁涓涓紩鐢ㄥ嚱鏁幫紝緇撴灉1涓?/span>
            System.Console.WriteLine("**********************");

            
//閫氳繃鍑芥暟鍦板潃鐩存帴鍒濆鍖栧鎵?/span>
            StrParaFunc spfHandler2 = PrintString;
            spfHandler2(
4"a string 4");
            System.Console.WriteLine(
"**********************");
            System.Console.ReadLine();
        }
    }
}

榪愯緇撴灉錛?br />
**********************
絎竴涓鎵樺璞★紝鏈?涓紩鐢ㄥ嚱鏁幫細
1:PrintString:a string 1
**********************
絎竴涓鎵樺璞★紝澧炲姞浜嗕竴涓紩鐢ㄥ嚱鏁幫紝鍏?涓紩鐢ㄥ嚱鏁幫細
2:PrintString:a string 2
2:ShowString:a string 2
**********************
絎竴涓鎵樺璞★紝鍑忓皯浜嗕竴涓紩鐢ㄥ嚱鏁幫紝鍓?涓紩鐢ㄥ嚱鏁幫細
3:ShowString:a string 3
**********************
4:PrintString:a string 4
**********************





鏈熷緟鏄庡ぉ 2009-10-26 15:59 鍙戣〃璇勮
]]>
C# 鍑芥暟瑕嗙洊http://www.tkk7.com/rorely/archive/2009/10/26/299789.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 07:57:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299789.htmlhttp://www.tkk7.com/rorely/comments/299789.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299789.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299789.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299789.html 涓涓櫄鍑芥暟琚鐩栧悗錛屼換浣曠埗綾誨彉閲忛兘涓嶈兘璁塊棶璇ヨ櫄鍑芥暟鐨勫叿浣撳疄鐜般?br /> public virtual void IntroduceMyself(){...}//鐖剁被铏氬嚱鏁?br /> public new void IntroduceMyself(){...}//瀛愮被瑕嗙洊鐖剁被铏氬嚱鏁?br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MethodOverrideByNew
{
    
public enum Genders { 
        Female
=0,
        Male
=1
    }
    
public class Person {
        
protected string _name;
        
protected int _age;
        
protected Genders _gender;
        
/// <summary>
        /// 鐖剁被鏋勯犲嚱鏁?/span>
        /// </summary>
        public Person() {
            
this._name = "DefaultName";
            
this._age = 23;
            
this._gender = Genders.Male;
        }
        
/// <summary>
        /// 瀹氫箟铏氬嚱鏁癐ntroduceMyself()
        /// </summary>
        public virtual void IntroduceMyself() {
            System.Console.WriteLine(
"Person.IntroduceMyself()");
        }
        
/// <summary>
        /// 瀹氫箟铏氬嚱鏁癙rintName()
        /// </summary>
        public virtual void PrintName() {
            System.Console.WriteLine(
"Person.PrintName()");
        }
    }
    
public class ChinesePerson :Person{
        
/// <summary>
        /// 瀛愮被鏋勯犲嚱鏁幫紝鎸囨槑浠庣埗綾繪棤鍙傛瀯閫犲嚱鏁拌皟鐢ㄨ搗
        /// </summary>
        public ChinesePerson() :base(){
            
this._name = "DefaultChineseName";
        }
        
/// <summary>
        /// 瑕嗙洊鐖剁被鏂規硶IntroduceMyself錛屼嬌鐢╪ew鍏抽敭瀛椾慨楗拌櫄鍑芥暟
        /// </summary>
        public new void IntroduceMyself() {
            System.Console.WriteLine(
"ChinesePerson.IntroduceMyself()");
        }
        
/// <summary>
        /// 閲嶈澆鐖剁被鏂規硶PrintName錛屼嬌鐢╫verride鍏抽敭瀛椾慨楗拌櫄鍑芥暟
        /// </summary>
        public override void PrintName(){
            System.Console.WriteLine(
"ChinesePerson.PrintName()");            
        }
    }

    
class Program
    {
        
static void Main(string[] args)
        {
            
//瀹氫箟涓や釜瀵硅薄錛屼竴涓埗綾誨璞★紝涓涓瓙綾誨璞?/span>
            Person aPerson = new ChinesePerson();
            ChinesePerson cnPerson 
= new ChinesePerson();
            
//璋冪敤瑕嗙洊鐨勬柟娉曪紝鐖剁被瀵硅薄涓嶈兘璋冪敤瀛愮被瑕嗙洊榪囩殑鏂規硶錛屽彧鑳借皟鐢ㄨ嚜韜殑铏氬嚱鏁版柟娉?/span>
            aPerson.IntroduceMyself();      
            cnPerson.IntroduceMyself();
            
//璋冪敤閲嶈澆鏂規硶錛岀埗綾誨璞″拰瀛愮被瀵硅薄閮藉彲浠ヨ皟鐢ㄥ瓙綾婚噸杞借繃鍚庣殑鏂規硶
            aPerson.PrintName();
            cnPerson.PrintName();

            System.Console.ReadLine();
        }
    }
}

緇撴灉錛?br />
Person.IntroduceMyself()
ChinesePerson.IntroduceMyself()
ChinesePerson.PrintName()
ChinesePerson.PrintName()





鏈熷緟鏄庡ぉ 2009-10-26 15:57 鍙戣〃璇勮
]]>
C# 鍑芥暟閲嶈澆http://www.tkk7.com/rorely/archive/2009/10/26/299772.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 26 Oct 2009 06:07:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/26/299772.htmlhttp://www.tkk7.com/rorely/comments/299772.htmlhttp://www.tkk7.com/rorely/archive/2009/10/26/299772.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299772.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299772.html
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MethodOverride
{
    
public enum Genders { 
        Female
=0,
        Male
=1
    }
    
public class Person {
        
protected string _name;
        
protected int _age;
        
protected Genders _gender;
        
public Person() {
            
this._name = "default name";
            
this._age = 20;
            
this._gender = Genders.Male;
        }
        
public virtual void IntroduceMyself() {
            System.Console.WriteLine(
"introduce myself");
        }
    }

    
public class ChinesePerson : Person {
        
public ChinesePerson() : base() {
            
this._name = "default Chinese Name";            
        }
        
public override void IntroduceMyself()
        {
            System.Console.WriteLine(
"鎴戝彨{0},騫撮緞{1},鎬у埆{2}",this._name,this._age,this._gender);
        }
    }

    
public class EnglishPerson : Person
    {
        
public EnglishPerson(): base()
        {
            
this._name = "default English Name";
        }
        
public override void IntroduceMyself()
        {
            System.Console.WriteLine(
"My Name is{0},my age is {1},my gender is {2}"this._name, this._age, this._gender);
        }
    }

    
class Program
    {
        
static void Main(string[] args)
        {
            Person aPerson 
= new Person();
            aPerson.IntroduceMyself();
            aPerson 
= new ChinesePerson();
            aPerson.IntroduceMyself();
            aPerson 
= new EnglishPerson();
            aPerson.IntroduceMyself();
            System.Console.ReadLine();
        }
    }
}

緇撴灉濡備笅錛?br />
introduce myself
鎴戝彨default Chinese Name,騫撮緞20,鎬у埆Male
My Name isdefault English Name,my age is 20,my gender is Male





鏈熷緟鏄庡ぉ 2009-10-26 14:07 鍙戣〃璇勮
]]>
緇ф壙錛岀敤鍐掑彿瀹炵幇http://www.tkk7.com/rorely/archive/2009/10/25/299708.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉSun, 25 Oct 2009 15:33:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/25/299708.htmlhttp://www.tkk7.com/rorely/comments/299708.htmlhttp://www.tkk7.com/rorely/archive/2009/10/25/299708.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299708.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299708.html 鈻燽ase鍏抽敭瀛椾笌this鍏抽敭瀛楃浉浼鹼紝瀹冭〃紺哄綋鍓嶇被鐨勭洿鎺ョ埗綾誨璞★紝闇瑕佹槑紜嬌鐢ㄧ埗綾繪垚鍛樻椂灝辮浣跨敤base鍏抽敭瀛椼?br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inherit
{
    
/// <summary>
    /// parent class
    /// </summary>
    class BaseClass {
        
public BaseClass(int pubVal) {
            System.Console.WriteLine(
"BaseClass(int) created");
        }
        
public BaseClass() {
            System.Console.WriteLine(
"BaseClass() created");
        }
    }
    
/// <summary>
    /// child class inherited from BaseClass
    /// </summary>
    class DevClass : BaseClass {
        
public DevClass() {
            System.Console.WriteLine(
"DevClass() created");
        }
        
public DevClass(int pubVal):base(pubVal)
        {
            System.Console.WriteLine(
"DevClass(int) created");
        }
    }
    
/// <summary>
    ///class for testing  result 
    /// </summary>
    class Program
    {
        
static void Main(string[] args)
        {
            DevClass devClass1 
= new DevClass();
            DevClass devClass2 
= new DevClass(12);
            System.Console.ReadLine();
        }
    }
}

榪愯緇撴灉錛?br />
BaseClass() created
DevClass() created
BaseClass(int) created
DevClass(int) created





鏈熷緟鏄庡ぉ 2009-10-25 23:33 鍙戣〃璇勮
]]>
闈欐佹垚鍛?/title><link>http://www.tkk7.com/rorely/archive/2009/10/25/299705.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 25 Oct 2009 15:13:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/10/25/299705.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/299705.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/10/25/299705.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/299705.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/299705.html</trackback:ping><description><![CDATA[闈欐佹垚鍛橀氳繃鐐硅繍綆楃鏉ヨ闂紝浣嗘槸涓嶈兘閫氳繃瀵硅薄璁塊棶錛屽彧鑳介氳繃綾誨悕璁塊棶銆?br /> 闈欐佹垚鍛樻槸灞炰簬綾葷殑錛屾墍浠ヤ笉瑕佸湪闈欐佸瓧孌典腑璁塊棶灞炰簬鏌愪釜瀵硅薄鐨勫叿浣撴暟鎹?br /> static public int a;//瀹氫箟涓涓潤鎬佸彉閲廰錛堟敞鎰忎慨楗扮鐨勯『搴忓彲浠ユ崲錛宻tatic public 鍙互鎹㈡垚public static錛?br /> <br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">using System;<br /> using System.Collections.Generic;<br /> using System.Linq;<br /> using System.Text;<br /> <br /> namespace StaticMemberTest<br /> {<br />     </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> Program<br />     {<br />         </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> a </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #000000;">10</span><span style="color: #000000;">;<br />         </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">void</span><span style="color: #000000;"> Main(string[] args)<br />         {<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">{0}</span><span style="color: #000000;">"</span><span style="color: #000000;">,a);<br />             addStatic(</span><span style="color: #000000;">456</span><span style="color: #000000;">);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">{0}</span><span style="color: #000000;">"</span><span style="color: #000000;">, a);<br />             System.Console.ReadLine();<br />         }<br />        </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">void</span><span style="color: #000000;"> addStatic(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> b){<br />             Program.a</span><span style="color: #000000;">=</span><span style="color: #000000;">Program.a</span><span style="color: #000000;">+</span><span style="color: #000000;">b;<br />         }<br />     }<br /> }<br /> 緇撴灉錛?br /> 10<br /> 466<br /> </span></div> <br /> <img src ="http://www.tkk7.com/rorely/aggbug/299705.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-10-25 23:13 <a href="http://www.tkk7.com/rorely/archive/2009/10/25/299705.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C#綾葷儲寮曞櫒鐨勪嬌鐢?/title><link>http://www.tkk7.com/rorely/archive/2009/10/25/299703.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 25 Oct 2009 14:51:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/10/25/299703.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/299703.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/10/25/299703.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/299703.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/299703.html</trackback:ping><description><![CDATA[<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> -->绱㈠紩鍣ㄦ彁渚涗簡涓縐嶅彲浠ヨ綾昏褰撲綔鏁扮粍榪涜璁塊棶鐨勬柟寮忋傚湪C#涓紝綾葷儲寮曞櫒鏄氳繃this鐨勫睘鎬у疄鐜扮殑銆?br /> index.ToString("D2")灝唅ndex杞崲鎴愪竴涓叿鏈変袱涓瓧絎﹀搴︾殑瀛楃涓?br /> <span style="color: #000000;"><br /> using System;<br /> using System.Collections.Generic;<br /> using System.Linq;<br /> using System.Text;<br /> <br /> namespace ClassIndexer<br /> {<br />     </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">    </span><span style="color: #008000;">//</span><span style="color: #008000;">/ define a class called AClass,which has only one private variable</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">    </span><span style="color: #008000;">//</span><span style="color: #008000;">/ </summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">   </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> AClass {<br />        </span><span style="color: #0000ff;">private</span><span style="color: #000000;"> string _name;<br />        </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> string Name {<br />            get { </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._name; }<br />            set { </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._name </span><span style="color: #000000;">=</span><span style="color: #000000;"> value; }<br />        }<br />        </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> AClass(string name) {<br />            </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._name </span><span style="color: #000000;">=</span><span style="color: #000000;"> name;<br />        }<br />     }<br />     </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">    </span><span style="color: #008000;">//</span><span style="color: #008000;">/ AClassContainer class</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">    </span><span style="color: #008000;">//</span><span style="color: #008000;">/ </summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">   </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> AClassContainer {<br />        </span><span style="color: #0000ff;">private</span><span style="color: #000000;"> AClass[] _AClassList;<br />        </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> AClassContainer() {<br />            </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._AClassList </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> AClass[</span><span style="color: #000000;">10</span><span style="color: #000000;">];<br />        }<br />        </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> AClassContainer(</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> cap) {<br />            </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._AClassList </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> AClass[cap];<br />        }<br />        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ class indexer by using int </span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ </summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <param name="index"></param></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <returns></returns></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> AClass </span><span style="color: #0000ff;">this</span><span style="color: #000000;">[</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> index] {<br />            get {<br />                </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> ((index </span><span style="color: #000000;"><</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">) </span><span style="color: #000000;">||</span><span style="color: #000000;"> (index </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._AClassList.Length)) </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">null</span><span style="color: #000000;">;<br />                </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._AClassList[index];<br />            }<br />            set {<br />                </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> ((index </span><span style="color: #000000;"><</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">) </span><span style="color: #000000;">||</span><span style="color: #000000;"> (index </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._AClassList.Length)) </span><span style="color: #0000ff;">return</span><span style="color: #000000;">;<br />                </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._AClassList[index] </span><span style="color: #000000;">=</span><span style="color: #000000;"> value;<br />            }<br />        }<br />        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ class indexer by using string</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ </summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <param name="name"></param></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <returns></returns></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">       </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> AClass </span><span style="color: #0000ff;">this</span><span style="color: #000000;">[string name] {<br />            get {<br />                foreach (AClass cls in </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._AClassList) {<br />                    </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (cls.Name </span><span style="color: #000000;">==</span><span style="color: #000000;"> name) </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> cls;<br />                }<br />                </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">null</span><span style="color: #000000;">;<br />            }<br />        }<br />    }<br />     </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> Program<br />     {<br />         </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">void</span><span style="color: #000000;"> Main(string[] args)<br />         {<br />             </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> count </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #000000;">10</span><span style="color: #000000;">;<br />             AClassContainer classContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> AClassContainer(count);<br />             </span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> index </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">; index </span><span style="color: #000000;"><</span><span style="color: #000000;"> count; index</span><span style="color: #000000;">++</span><span style="color: #000000;">) {<br />                 string name </span><span style="color: #000000;">=</span><span style="color: #000000;"> index.ToString(</span><span style="color: #000000;">"</span><span style="color: #000000;">D2</span><span style="color: #000000;">"</span><span style="color: #000000;">);<br />                 classContainer[index] </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> AClass(name);<br />             }<br />             </span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> index </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">; index </span><span style="color: #000000;"><</span><span style="color: #000000;"> count; index</span><span style="color: #000000;">++</span><span style="color: #000000;">)<br />             {<br />                 AClass cls </span><span style="color: #000000;">=</span><span style="color: #000000;"> classContainer[index];<br />                 System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">classContainer[{0}].Name=\</span><span style="color: #000000;">"</span><span style="color: #000000;">{</span><span style="color: #000000;">1</span><span style="color: #000000;">}\</span><span style="color: #000000;">""</span><span style="color: #000000;">,index,cls.Name);<br />             }<br />             System.Console.WriteLine();<br />             </span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> index </span><span style="color: #000000;">=</span><span style="color: #000000;"> count </span><span style="color: #000000;">-</span><span style="color: #000000;"> </span><span style="color: #000000;">1</span><span style="color: #000000;">; index </span><span style="color: #000000;">>=</span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">; index</span><span style="color: #000000;">--</span><span style="color: #000000;">) {<br />                 string name </span><span style="color: #000000;">=</span><span style="color: #000000;"> index.ToString(</span><span style="color: #000000;">"</span><span style="color: #000000;">D2</span><span style="color: #000000;">"</span><span style="color: #000000;">);<br />                 AClass cls </span><span style="color: #000000;">=</span><span style="color: #000000;"> classContainer[name];<br />                 System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">classContainer[{0}].Name=\</span><span style="color: #000000;">"</span><span style="color: #000000;">{</span><span style="color: #000000;">1</span><span style="color: #000000;">}\</span><span style="color: #000000;">""</span><span style="color: #000000;">,name,cls.Name);<br />             }<br />             System.Console.ReadLine();<br />         }<br />     }<br /> }<br /> <br /> 緇撴灉錛?br /> </span>classContainer[0].Name="00"<br /> classContainer[1].Name="01"<br /> classContainer[2].Name="02"<br /> classContainer[3].Name="03"<br /> classContainer[4].Name="04"<br /> classContainer[5].Name="05"<br /> classContainer[6].Name="06"<br /> classContainer[7].Name="07"<br /> classContainer[8].Name="08"<br /> classContainer[9].Name="09"<br /> <br /> classContainer[09].Name="09"<br /> classContainer[08].Name="08"<br /> classContainer[07].Name="07"<br /> classContainer[06].Name="06"<br /> classContainer[05].Name="05"<br /> classContainer[04].Name="04"<br /> classContainer[03].Name="03"<br /> classContainer[02].Name="02"<br /> classContainer[01].Name="01"<br /> classContainer[00].Name="00"<br /> <br /> <br /> </div> <img src ="http://www.tkk7.com/rorely/aggbug/299703.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-10-25 22:51 <a href="http://www.tkk7.com/rorely/archive/2009/10/25/299703.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>C# 綾誨睘鎬х殑璁塊棶鍣紝get涓巗et浼犵粺鍋氭硶錛屽悓javahttp://www.tkk7.com/rorely/archive/2009/10/25/299685.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉSun, 25 Oct 2009 10:52:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/25/299685.htmlhttp://www.tkk7.com/rorely/comments/299685.htmlhttp://www.tkk7.com/rorely/archive/2009/10/25/299685.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299685.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299685.htmlusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace useClass
{
    
/// <summary>
    /// define Genders ,type is enum
    /// </summary>
    public enum Genders { 
        Female
=0,
        Male
=1
    }
    
public class Person {
       
private  string name;
       
private int age;
       
private Genders gender;
        
/// <summary>
        /// default class constructor without any parameters
        /// </summary>
       public Person() { }
        
/// <summary>
        /// class constructor with all fields
        /// </summary>
        /// <param name="name"></param>
        /// <param name="age"></param>
        /// <param name="gender"></param>
       public Person(string name, int age, Genders gender) {
           
this.name = name;
           
this.age = age;
           
this.gender = gender;
       }
        
/// <summary>
        /// getters
        /// </summary>
        /// <returns></returns>
       public string getName() {
           
return this.name;
       }
       
public int getAge() {
           
return this.age;
       }
       
public Genders getGender() {
           
return this.gender;
       }
        
/// <summary>
        /// setters
        /// </summary>
        /// <param name="name"></param>
       public void setName(string name) {
           
this.name = name;
       }
       
public void setAge(int age) {
           
this.age = age;
       }
       
public void setGender(Genders gender) {
           
this.gender = gender;
       }
    }
    
class Program
    {
        
static void Main(string[] args)
        {
            Person aPerson 
= new Person();
            aPerson.setName(
"rorely");
            aPerson.setAge(
19);
            aPerson.setGender(
0);
            System.Console.WriteLine(
"{0},{1},{2}",aPerson.getName(),aPerson.getAge(),aPerson.getGender());

            Person bPerson 
= new Person("Rose",23,Genders.Female);
            System.Console.WriteLine(
"{0},{1},{2}", bPerson.getName(), bPerson.getAge(), bPerson.getGender());

            System.Console.ReadLine();
        }
    }
}

緇撴灉錛?br /> rorely,19,Female
Rose,23,Female


鏈熷緟鏄庡ぉ 2009-10-25 18:52 鍙戣〃璇勮
]]>
C# 綾誨睘鎬х殑璁塊棶鍣紝get涓巗et鐨勫畾涔?/title><link>http://www.tkk7.com/rorely/archive/2009/10/25/299683.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 25 Oct 2009 10:50:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/10/25/299683.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/299683.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/10/25/299683.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/299683.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/299683.html</trackback:ping><description><![CDATA[<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">using System;<br /> using System.Collections.Generic;<br /> using System.Linq;<br /> using System.Text;<br /> <br /> namespace useClass2<br /> {<br />     </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> </span><span style="color: #0000ff;">enum</span><span style="color: #000000;"> Genders { Female</span><span style="color: #000000;">=</span><span style="color: #000000;">0</span><span style="color: #000000;">,Male</span><span style="color: #000000;">=</span><span style="color: #000000;">1</span><span style="color: #000000;">}<br />     </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> Person {<br />         </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ _name is private field,Name is public attribute錛屽鍚嶅墠鍚庣殑絀哄幓闄ゆ帀</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ </summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #0000ff;">private</span><span style="color: #000000;"> string _name;<br />         </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> string Name {<br />             get { </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._name; }<br />             set { </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._name </span><span style="color: #000000;">=</span><span style="color: #000000;"> value.Trim(); }<br />         }<br />         </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ _age:1-120涔嬮棿錛岃秴鍑鴻繖涓寖鍥達紝榛樿璁劇疆涓?0</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ </summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #0000ff;">private</span><span style="color: #000000;"> </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> _age;<br />         </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> Age {<br />             get { </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._age; }<br />             set {<br />                 </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> ((value </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #000000;">120</span><span style="color: #000000;">) </span><span style="color: #000000;">||</span><span style="color: #000000;"> (value </span><span style="color: #000000;"><</span><span style="color: #000000;"> </span><span style="color: #000000;">1</span><span style="color: #000000;">)) </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._age </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #000000;">20</span><span style="color: #000000;">;<br />                 </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._age </span><span style="color: #000000;">=</span><span style="color: #000000;"> value;<br />             }<br />         }<br />         </span><span style="color: #008000;">//</span><span style="color: #008000;">/ <summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ _gender</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #008000;">//</span><span style="color: #008000;">/ </summary></span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #0000ff;">private</span><span style="color: #000000;"> Genders _gender;<br />         </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> Genders Gender {<br />             get { </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._gender; }<br />             set { </span><span style="color: #0000ff;">this</span><span style="color: #000000;">._gender </span><span style="color: #000000;">=</span><span style="color: #000000;"> value; }<br />         }<br />     }<br />     </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> Program<br />     {<br />         </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">void</span><span style="color: #000000;"> Main(string[] args)<br />         {<br />             Person aPerson </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> Person();<br />             aPerson.Name </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;">Rorely</span><span style="color: #000000;">"</span><span style="color: #000000;">;<br />             aPerson.Age </span><span style="color: #000000;">=</span><span style="color: #000000;"> 19</span><span style="color: #000000;">;<br />             aPerson.Gender </span><span style="color: #000000;">=</span><span style="color: #000000;"> Genders.Female;<br />             PrintPerson(aPerson);<br />             System.Console.ReadLine();<br />         }<br />         </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">void</span><span style="color: #000000;"> PrintPerson(Person a) {<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">{0},{1},{2}</span><span style="color: #000000;">"</span><span style="color: #000000;">,a.Name,a.Age,a.Gender);<br />         }<br />     }<br /> }<br /> <br /> 緇撴灉錛?br /> rorely,19,Female<br /> </span></div> <img src ="http://www.tkk7.com/rorely/aggbug/299683.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-10-25 18:50 <a href="http://www.tkk7.com/rorely/archive/2009/10/25/299683.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍊間紶閫掑拰寮曠敤浼犻掞紝鍑芥暟瀹氫箟http://www.tkk7.com/rorely/archive/2009/10/25/299674.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉSun, 25 Oct 2009 08:58:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/25/299674.htmlhttp://www.tkk7.com/rorely/comments/299674.htmlhttp://www.tkk7.com/rorely/archive/2009/10/25/299674.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299674.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299674.html鍊間紶閫掞紝寮曠敤浼犻?br /> 鍊間紶閫掞細鏄鎵寮曠敤鍙傛暟榪涜涓嬈″壇鏈嫹璐濓紝瀵瑰弬鏁扮殑淇敼鍙槸瀵瑰壇鏈殑淇敼錛屽嚱鏁拌皟鐢ㄧ粨鏉燂紝鍓湰涓㈠純錛屽師鏉ョ殑鍙橀噺涓嶅彉
寮曠敤浼犻掞細鍙傛暟琚紶閫掑埌鍑芥暟鏃訛紝涓嶅鍒跺壇鏈紝鑰屾槸鐩存帴灝嗗弬鏁拌嚜韜紶鍏ュ埌鍑芥暟錛屽嚱鏁板唴瀵瑰弬鏁扮殑浠諱綍鏀瑰彉閮藉皢鍙嶆槧鍒板弬鏁頒笂銆?br /> 浣跨敤ref淇グ絎﹁〃鏄庤鍙傛暟鏄氳繃寮曠敤浼犻掔殑銆?br /> TransPara(a,ref b)//a涓哄間紶閫掞紝b涓哄紩鐢ㄤ紶閫?br />
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ParametersRefAndValue
{
    
class Program
    {
        
static void Main(string[] args)
        {
            
int val = 23, refVal = 56;
            
//杈撳嚭璋冪敤鍓嶇殑鍙傛暟鍊?/span>
            System.Console.WriteLine("Before call TransPara: val={0},refVal={1}",val,refVal);
            TransPara(val,ref refVal);
//璋冪敤鍑芥暟錛屽茍涓旇緭鍑鴻皟鐢ㄤ腑鐨勫弬鏁板?br />             //杈撳嚭璋冪敤鍚庣殑鍙傛暟鍊?/span>
            System.Console.WriteLine("After call TransPara: val={0},refVal={1}", val, refVal);
            System.Console.ReadLine();
        }
        
static void TransPara(int val, ref int refVal) {
            val
++;
            refVal
--;
            System.Console.WriteLine(
"During call  TransPara: val={0},refVal={0}", val,refVal);
        }
    }
}

緇撴灉濡備笅錛?br />
Before call TransPara: val=23,refVal=56
During call  TransPara: val=24,refVal=24
After call TransPara: val=23,refVal=55




]]>
foreach閬嶅巻鏁扮粍鍏冪礌http://www.tkk7.com/rorely/archive/2009/10/25/299670.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉSun, 25 Oct 2009 08:22:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/25/299670.htmlhttp://www.tkk7.com/rorely/comments/299670.htmlhttp://www.tkk7.com/rorely/archive/2009/10/25/299670.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299670.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299670.htmlusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArrayOperation
{
    
class Program
    {
        
static void Main(string[] args)
        {
            
int[] a = { 123,12,245,1,2,45,67};//涓緇存暟緇勶紝綾誨瀷涓篿nt
            int[,] b = { {12,34,1,7},{23,345,12,45}};//浜岀淮鏁扮粍錛岀被鍨嬩負int
            string[] c = { "hello","World","浣犲ソ"};//涓緇存暟緇勶紝綾誨瀷涓簊tring
            foreach (int i in a) {//杈撳嚭a鏁扮粍
                System.Console.Write("{0}  ",i);
            }
            System.Console.WriteLine();
//鎹㈣
            foreach (int j in b){//杈撳嚭b鏁扮粍
                System.Console.Write("{0}  ", j);
            }
            System.Console.WriteLine();
//鎹㈣
            foreach (string j in c){//杈撳嚭c鏁扮粍
                System.Console.Write("{0}  ", j);
            }
            System.Console.ReadLine();
//鏂逛究鐪嬬粨鏋滐紝鍏嶅緱緇撴灉涓闂岃繃
        }
    }
}


鏈熷緟鏄庡ぉ 2009-10-25 16:22 鍙戣〃璇勮
]]>
C# 鍚勭鏁版嵁綾誨瀷鐨勬渶澶у煎拰鏈灝忓煎父鏁?/title><link>http://www.tkk7.com/rorely/archive/2009/10/25/299669.html</link><dc:creator>鏈熷緟鏄庡ぉ</dc:creator><author>鏈熷緟鏄庡ぉ</author><pubDate>Sun, 25 Oct 2009 08:01:00 GMT</pubDate><guid>http://www.tkk7.com/rorely/archive/2009/10/25/299669.html</guid><wfw:comment>http://www.tkk7.com/rorely/comments/299669.html</wfw:comment><comments>http://www.tkk7.com/rorely/archive/2009/10/25/299669.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/rorely/comments/commentRss/299669.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/rorely/services/trackbacks/299669.html</trackback:ping><description><![CDATA[<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">using System;<br /> using System.Collections.Generic;<br /> using System.Linq;<br /> using System.Text;<br /> <br /> namespace TypeMaxMinValue<br /> {<br />     </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> Program<br />     {<br />         </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">void</span><span style="color: #000000;"> Main(string[] args)<br />         {<br />             PrintDataRange();        <br />         }<br />         </span><span style="color: #0000ff;">static</span><span style="color: #000000;"> </span><span style="color: #0000ff;">void</span><span style="color: #000000;"> PrintDataRange() {<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">int綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, </span><span style="color: #0000ff;">int</span><span style="color: #000000;">.MaxValue, </span><span style="color: #0000ff;">int</span><span style="color: #000000;">.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">uint綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, uint.MaxValue, uint.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">byte綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, </span><span style="color: #0000ff;">byte</span><span style="color: #000000;">.MaxValue, </span><span style="color: #0000ff;">byte</span><span style="color: #000000;">.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">sbyte綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, sbyte.MaxValue, sbyte.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">short綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, </span><span style="color: #0000ff;">short</span><span style="color: #000000;">.MaxValue, </span><span style="color: #0000ff;">short</span><span style="color: #000000;">.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">ushort綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">,ushort.MaxValue, ushort.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">long綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, </span><span style="color: #0000ff;">long</span><span style="color: #000000;">.MaxValue, </span><span style="color: #0000ff;">long</span><span style="color: #000000;">.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">ulong綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, ulong.MaxValue, ulong.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">float綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, </span><span style="color: #0000ff;">float</span><span style="color: #000000;">.MaxValue, </span><span style="color: #0000ff;">float</span><span style="color: #000000;">.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">double綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, </span><span style="color: #0000ff;">double</span><span style="color: #000000;">.MaxValue, </span><span style="color: #0000ff;">double</span><span style="color: #000000;">.MinValue);<br />             System.Console.WriteLine(</span><span style="color: #000000;">"</span><span style="color: #000000;">decimal綾誨瀷鐨勬渶澶у?  {0},鏈灝忓?  {1}</span><span style="color: #000000;">"</span><span style="color: #000000;">, decimal.MaxValue, decimal.MinValue);<br />             System.Console.ReadLine();<br />         }       <br />     }<br /> }<br /> <br /> 榪愯緇撴灉濡備笅錛?br /> <br /> </span> <div style="font-size: 20px; color: blue; font-weight: bold; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">int綾誨瀷鐨勬渶澶у?  2147483647,鏈灝忓?  -2147483648<br /> uint綾誨瀷鐨勬渶澶у?  4294967295,鏈灝忓?  0<br /> byte綾誨瀷鐨勬渶澶у?  255,鏈灝忓?  0<br /> sbyte綾誨瀷鐨勬渶澶у?  127,鏈灝忓?  -128<br /> short綾誨瀷鐨勬渶澶у?  32767,鏈灝忓?  -32768<br /> ushort綾誨瀷鐨勬渶澶у?  65535,鏈灝忓?  0<br /> long綾誨瀷鐨勬渶澶у?  9223372036854775807,鏈灝忓?  -9223372036854775808<br /> ulong綾誨瀷鐨勬渶澶у?  18446744073709551615,鏈灝忓?  0<br /> float綾誨瀷鐨勬渶澶у?  3.402823E+38,鏈灝忓?  -3.402823E+38<br /> double綾誨瀷鐨勬渶澶у?  1.79769313486232E+308,鏈灝忓?  -1.79769313486232E+308<br /> decimal綾誨瀷鐨勬渶澶у?  79228162514264337593543950335,鏈灝忓?  -792281625142643375 93543950335<br /> </div> </div> <img src ="http://www.tkk7.com/rorely/aggbug/299669.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/rorely/" target="_blank">鏈熷緟鏄庡ぉ</a> 2009-10-25 16:01 <a href="http://www.tkk7.com/rorely/archive/2009/10/25/299669.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>紼嬪簭緇撴瀯--the beginning of learning CSharphttp://www.tkk7.com/rorely/archive/2009/10/25/299666.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉSun, 25 Oct 2009 06:46:00 GMThttp://www.tkk7.com/rorely/archive/2009/10/25/299666.htmlhttp://www.tkk7.com/rorely/comments/299666.htmlhttp://www.tkk7.com/rorely/archive/2009/10/25/299666.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/299666.htmlhttp://www.tkk7.com/rorely/services/trackbacks/299666.html 寮曠敤鏂囦歡澶癸細鎻愪緵欏圭洰涓紩鐢ㄥ埌鐨勫懡鍚嶇┖闂達紝鏍規嵁涓嶅悓鐨勫簲鐢ㄧ▼搴忕被鍨嬩細鏈変笉鍚岀殑榛樿鍛藉悕絀洪棿錛屽System,System.Data,System.Xml
Program.cs錛氶」鐩殑鍚姩浠g爜錛屽湪璇ユ枃浠朵腑瀹氫箟欏圭洰鐨勫惎鍔ㄥ叆鍙o紝鍗矼ain鍑芥暟




鏈熷緟鏄庡ぉ 2009-10-25 14:46 鍙戣〃璇勮
]]>
HelloWorld.cshttp://www.tkk7.com/rorely/archive/2009/09/28/296840.html鏈熷緟鏄庡ぉ鏈熷緟鏄庡ぉMon, 28 Sep 2009 13:46:00 GMThttp://www.tkk7.com/rorely/archive/2009/09/28/296840.htmlhttp://www.tkk7.com/rorely/comments/296840.htmlhttp://www.tkk7.com/rorely/archive/2009/09/28/296840.html#Feedback0http://www.tkk7.com/rorely/comments/commentRss/296840.htmlhttp://www.tkk7.com/rorely/services/trackbacks/296840.html using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 0; i < 3;i++ )
                System.Console.WriteLine("{0}:Hello World!",i);
            System.Console.ReadLine();//涓轟簡渚夸簬鏌ョ湅涓婇潰鎵撳嵃涓変釜HelloWorld鐨勭粨鏋?br />         }
    }
}


璇存槑錛氳紼嬪簭涓猴細Windows Console Application
鎵撳嵃涓変釜hello World

Main鍑芥暟鏄欏圭洰鐨勫惎鍔ㄥ叆鍙c?br /> 鍦ㄦ帶鍒跺彴搴旂敤紼嬪簭涓粯璁ゅ紩鐢ㄥ寘鎷細System,System.Data,System.Xml

榪愯緇撴灉濡備笅錛?br />
0:Hello World!
1:Hello World!
2:Hello World!







鏈熷緟鏄庡ぉ 2009-09-28 21:46 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲日韩av无码中文| 午夜免费不卡毛片完整版| 国产偷国产偷亚洲高清人| 五月天网站亚洲小说| 亚洲国产成人VA在线观看| 丁香花在线观看免费观看| 国产婷婷成人久久Av免费高清 | 在线亚洲午夜片AV大片| 亚洲Av综合色区无码专区桃色| 免费一级成人毛片| 国外成人免费高清激情视频| 中文字幕免费在线观看| 精品亚洲永久免费精品| 中文毛片无遮挡高清免费| 美女视频黄.免费网址| 亚洲丰满熟女一区二区哦| 亚洲Av高清一区二区三区| 亚洲精品国产免费| 亚洲自偷自偷精品| 亚洲国产成人久久精品动漫| 亚洲精品无码午夜福利中文字幕| 亚洲国产精品毛片av不卡在线| 国产大片线上免费看| 四虎影视免费在线| 香蕉视频在线观看免费国产婷婷| 免费可以看黄的视频s色| 蜜桃AV无码免费看永久| 16女性下面扒开无遮挡免费| 99久久免费观看| **真实毛片免费观看| 久久www免费人成看片| 67194熟妇在线永久免费观看 | 亚洲欧洲另类春色校园网站| 亚洲字幕在线观看| 亚洲人成伊人成综合网久久| 亚洲人成影院77777| 亚洲熟妇av午夜无码不卡| 午夜在线a亚洲v天堂网2019| 亚洲综合激情五月色一区| 亚洲日韩av无码中文| 国产成人亚洲综合在线|