<分区>
Possible Duplicate:
What does “this” mean in a static method declaration?
我浏览了一个代码片段,发现这个关键字被用作函数参数。 代码片段就像
public static void AddCell(this Table table, object cell)
为什么 AddCell 有 this
关键字他们可以这样写 AddCell(Table table, object cell)
请用小代码示例解释何时使用此关键字作为函数参数的情况,这样我可以更好地理解。谢谢。