Can "this" be used within a static method?



Can "this" be used within a static method?..

Answer / 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

More Dot Net General Interview Questions

How can you see which services are running on a Windows box?

1 Answers  


What is the difference between a Hash Table and a Dictionary?

1 Answers  


Explain what is the difference between a class and an object?

1 Answers  


Is there any inbuilt tool or command provided by .NET to view the code inside the assembly?

1 Answers   CitiusTech,


Should I implement finalize on my class? Should I implement idisposable?

1 Answers  


What is Garbage Collection in .Net? Garbage collection process?

3 Answers  


How many types of exception handlers are there in .NET?

2 Answers  


What is "common language specification" (cls) in .net?

1 Answers  


What are possible implementations of distributed applications in .NET?

1 Answers  


what is prototype design pattern in .net

1 Answers   Infosys,


Explain the main components in .net?

1 Answers  


Do you know what is lambda expressions in c#?

1 Answers  


Categories