You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this in method initialization, an extra dot is placed in front of the self variable.
C#:
this.tag =remoteTag;
converts to
.self.tag=remoteTag
However, if you don't use this.tag, and just convert it to
tag = remoteTag
it converts correctly
self.tag=remoteTag
While using this in this.tag = remoteTag is useless, it is needed for something like this.tag = tag if the tag is used in an constructor with a parameter of the same name.
The text was updated successfully, but these errors were encountered:
When using
this
in method initialization, an extra dot is placed in front of the self variable.C#:
converts to
However, if you don't use this.tag, and just convert it to
tag = remoteTag
it converts correctly
While using
this
inthis.tag = remoteTag
is useless, it is needed for something likethis.tag = tag
if the tag is used in an constructor with a parameter of the same name.The text was updated successfully, but these errors were encountered: