本文介绍了此关键字在C#中的意义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是c#的新程序员.可以用合适的示例来让我解释这个关键字的意思吗?
i am a new programmer i c#. can sumone explain me the sigificane of this keyword with a suitable example ?
推荐答案简单的解释是: this始终指向当前执行的代码所属的对象. 有关更复杂的答案,请阅读给定的MSDN链接. 或随时详细说明您的问题或对答案发表评论. The simple explanation is: this always points to the object that the currently executing code belongs to. For a more sophisticated answer, read the given MSDN link. Or feel free to elaborate on your question or comment on an answer.
阅读此 [ ^ ] 希望对您有所帮助:) Read this[^] hope it helps :)
除此之外,您还可以在扩展方法(.Net 3.5)中使用此关键字. 有关更多信息,请在此处. Hi, In addition to that you can also use this keyword in Extension methods(.Net 3.5). For more info check here.
更多推荐
此关键字在C#中的意义
发布评论