Pradeep Yadav
Can we use “this” within a static method?
By Pradeep Yadav in C# on May 24 2017
  • Manav Pandya
    Jan, 2018 16

    Technically its not possible , because static portion execute before any other part of code o this keyword will be without referenced

    • 0
  • Kapil Gupta
    Nov, 2017 21

    No, this keyword denotes instance variables and functions. In static method, Only static properties initialize.

    • 0
  • Pradeep Yadav
    May, 2017 24

    No, We can not use, we can only use static variables/methods in a static method.

    • 0