can we declare a variable by name "this" in a class? Please
explain?

Answer Posted / bindu sharma

No,we cannot declare a variable by name "this" because it
is a keyword.but we can use any keyword as identifiers only
when they are prefaced by the @character.

Is This Answer Correct ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between the debug class and trace class? Documentation looks the same.

716


What is a clr (common language runtime)?

672


What is the difference between ienumerable and enumerable?

670


What is singleordefault c#?

687


Why do we use stringbuilder in c#?

700


what are the contents of an assembly ?

744


What is difference between gridview and form view?

752


What are circular references?

711


What is difference between association, aggregation and inheritance relationships?

694


What are delegates and why are they required?

700


What is datareader c#?

671


What is the execution entry point for a c# console application?

738


Which types of inheritances does c# support?

646


How to move to a state-related codebase?

1167


Explain the difference between .net and c#?

689