C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
3
Reply
Can we use “this” within a static method?
Pradeep Yadav
8y
608
1
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
Technically its not possible , because static portion execute before any other part of code o this keyword will be without referenced
Manav Pandya
7y
0
No, this keyword denotes instance variables and functions. In static method, Only static properties initialize.
Kapil Gupta
8y
0
No, We can not use, we can only use static variables/methods in a static method.
Pradeep Yadav
8y
0
What is Constructor Chaining
What is difference between the “throw” and “throw ex” in .NET?
Message