Can we use "this" command within a static method?
Roshan Rathod
Select an image from your device to upload
No, we can’t use “this” keyword inside a static method.
“this” refers to current instance of the class. But if we define a method as static , class instance will not have access to it, only CLR executes that block of code. Hence we can’t use “this” keyword inside static method.
No, “this” command cannot be used with static method. Reason, this is used with instance ad static method can’t be used with any instance.