当前位置: 代码迷 >> C# >> C#步骤声明时的this关键字是干什么用的
  详细解决方案

C#步骤声明时的this关键字是干什么用的

热度:1992   发布时间:2013-02-25 00:00:00.0
C#方法声明时的this关键字是干什么用的?

//
        // 摘要:
        //     按指定谓词筛选行序列。
        //
        // 参数:
        //   source:
        //     一个 System.Data.TypedTableBase<T>,其中包含要筛选的 System.Data.DataRow 元素。
        //
        //   predicate:
        //     用于测试每个元素是否满足条件的函数。
        //
        // 类型参数:
        //   TRow:
        //     source 中行元素的类型 System.Data.DataRow。
        //
        // 返回结果:
        //     一个 System.Data.OrderedEnumerableRowCollection<TRow>,其中包含输入序列中满足该条件的行。
        public static EnumerableRowCollection<TRow> Where<TRow>(this TypedTableBase<TRow> source, Func<TRow, bool> predicate) where TRow : DataRow;


这是代码。
this c#

------解决方案--------------------------------------------------------
this is called extension method

must be a static method of a static class

  相关解决方案