adspace


Can "this" be used within a static method?

Answer Posted / Sukeerti Suresh

No, 'this' cannot be used within a static method in C#. 'this' refers to the current instance of a class, but since static methods do not operate on any instance, there is no instance for 'this' to represent.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1143