I am a bit unclear about the concept of this pointer. I know the this pointer in c++ is hidden pointer and it is used to refer the current invoking object. But I want to know if there is a datatype for this pointer, For eg. int *p; states that p is a pointer to an integer. Similarly this pointer points to what? (I mean where is this 'this' pointer declared or written, or where does it exist and how is it written there.)
Second question is in the context of C# The question is -- what is 'this' in the context of C# if it is not a pointer in C# (I found out it is not a pointer in C# when i tried using the -> arrow operator with 'this' keyword). And again, what is the datatype of 'this' in C# (I know the answer to the above question relating to c++ would answer it, but I wanted to know is it different in C# )
P.S : I am an amateur programmer, and in learning stage, so apologies for using terms like "how is it written there" instead of the proper technical terminologies in asking the question.