理解不是很彻底,,我的理解是新建一个变量,也可以引用当前的对象,,,,

解决方案 »

  1.   

    this(C# 参考)this 关键字引用类的当前实例。 以下是 this 的常用用途:限定被相似的名称隐藏的成员,例如: 复制代码
    public Employee(string name, string alias) 
    {
        this.name = name;
        this.alias = alias;

    将对象作为参数传递到其他方法,例如:  复制代码
    CalcTax(this);
    声明索引器,例如:  复制代码
    public int this [int param]
    {
        get { return array[param];  }
        set { array[param] = value; }
    }
    由于静态成员函数存在于类一级,并且不是对象的一部分,因此没有 this 指针。在静态方法中引用 this 是错误的。 示例 
    在本例中,this 用于限定 Employee 类成员 name 和 alias,它们都被相似的名称隐藏。this 还用于将对象传递到属于其他类的方法 CalcTax。 复制代码
    // keywords_this.cs
    // this example
    using System;
    class Employee
    {
        private string name;
        private string alias;
        private decimal salary = 3000.00m;    // Constructor:
        public Employee(string name, string alias)
        {
            // Use this to qualify the fields, name and alias:
            this.name = name;
            this.alias = alias;
        }    // Printing method:
        public void printEmployee()
        {
            Console.WriteLine("Name: {0}\nAlias: {1}", name, alias);
            // Passing the object to the CalcTax method by using this:
            Console.WriteLine("Taxes: {0:C}", Tax.CalcTax(this));
        }    public decimal Salary
        {
            get { return salary; }
        }
    }
    class Tax
    {
        public static decimal CalcTax(Employee E)
        {
            return 0.08m * E.Salary;
        }
    }class MainClass
    {
        static void Main()
        {
            // Create objects:
            Employee E1 = new Employee("John M. Trainer", "jtrainer");        // Display results:
            E1.printEmployee();
        }
    }
     输出 
    Name: John M. Trainer
    Alias: jtrainer
    Taxes: $240.00
    有关其他示例,请参见 class 和 struct。 C# 语言规范 
    有关更多信息,请参见 C# 语言规范中的以下各章节:7.5.7 this 访问10.2.6.4 this 访问
      

  2.   

    这还需要理解?this...如果你英文不是太差的话...就是实例本身...没有别的意思...
      

  3.   

    this就是指当前对象的实例class A
    {
        List<string> lst = new List<string>();
        public A Add(string i)
        {
            lst.Add(i);
            return this;
        }
    }你可以连续调用Add
    new A().Add("a").Add("b").Add("c");
      

  4.   

    static的东西是不是只有类本身的对象,其余的类是不是不能调用
      

  5.   


    当 A a=new A();
    a里面是不是就有了("a","b","c")??
      

  6.   

    当前类的首地址
    靠,csdn还嫌我回复太短》》》
      

  7.   

    this的意思就是指示当前实力本身
      

  8.   

    为什么要 this? 
    请看: http://blog.csdn.net/wildmen/archive/2006/12/08/1434826.aspx