Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Can we use “this” inside a static method in C#?
Home
C Sharp
Can we use “this” inside a static method in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Can we use “this” inside a static method in C#?
this-c#
c#-this
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
No. We can’t use “this” in static method.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: Can we use delegates for asynchronous method calls in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
c#-delegates
delegates
0
votes
Q: Can we override private virtual method in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
private-virtual-method
private-virtual
0
votes
Q: Explain Static constructor in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
static-constructor
0
votes
Q: What are the differences between static, public and void in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
static-c#
c#-static
c#-public
c#-void
void-c#
public-c#
0
votes
Q: Explain “static” keyword in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
static-c#
c#-static
+1
vote
Q: Can "this" be used within a static method?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#basicc#
#chash
0
votes
Q: How we can sort the array elements in descending order in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
sort-array
array-sort
0
votes
Q: Can we have only “try” block without “catch” block in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
try-c#
c#-try
c#-catch
catch-c#
0
votes
Q: Can we execute multiple catch blocks in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
multiple-catch-blocks
catch-block-c#
0
votes
Q: What is the difference between method overloading and method overriding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#method-overloading
...