Manoj Bhatt
Total Post:154
Points:1086
Hi All..
I want to know , can i used 'this' keyword inside a static method.
Thank you.
Total Post:154
Points:1086Post:2
Points:14Post is removed by the Admin.
© Copyright © 2010 - 2018 MindStick Software Pvt. Ltd. All Rights Reserved
Post:13
Points:91Re: Can “this” be used within a static method in c#
We can't use this in static method because keyword 'this' returns a reference to the current instance of the class containing it. Static methods (or any static member) do not belong to a particular instance.