+ 1

Что делает ключевое слово this? What does the key word "this" do?

1st Jul 2019, 4:35 PM
Steep turN
Steep turN - avatar
5 odpowiedzi
+ 3
For the use of the keyword "this", have a look at the example code https://code.sololearn.com/c69lPaq61hgG this is used to distinguish the internal class variable en those who come from outside the class. I always add my current programming language in the google search. In this case it would be c# this keyword I also have a short list of favourite websites, where i am looking for in the result list of the search. If one of the result is "tutorialspoint" (https://www.tutorialspoint.com/csharp/) I read that link first Some time I add even my favourite site to google search c# this keyword sololearn
1st Jul 2019, 9:38 PM
sneeze
sneeze - avatar
+ 2
this - это ссылка на текущий объект(экземпляр, переменную) класса.
1st Jul 2019, 6:19 PM
Карина Горяинова
Карина Горяинова - avatar
+ 1
И можете, пожалуйста, объяснить, как искать такие обсуждения, тк при поиске this находится много результатов, но только единицы из с#, а если я в поиске набираю с#, то мне выскакивают обсуждения типа: что выбрать с# или с++, что легче... и тд
1st Jul 2019, 4:45 PM
Steep turN
Steep turN - avatar
+ 1
And may you help me please with understanding of how I can find information about topic that I needed, bcs when I write word this I find a lot of information about it, but just few of them are about c#, and if I use word c# I find topics like What is better c# or c++ and so on.
1st Jul 2019, 4:52 PM
Steep turN
Steep turN - avatar
+ 1
Thanks for your answers
3rd Jul 2019, 3:49 PM
Steep turN
Steep turN - avatar