0

When i pass an object like this; for example: SomeMethod(this); How i do point to this object inside body function?; like "this" too?

27th Apr 2016, 7:08 PM
Daniel Jaimes
Daniel Jaimes - avatar
1 Odpowiedź
+ 1
SomeMethod(this); is your call to the function. the function definition will still be something like public void SomeMethod(SomeClass obj){ } . refer to it with the parameter name like any other parameter, (obj in my example)
30th Apr 2016, 8:11 PM
Eric Phillips
Eric Phillips - avatar