[EASY] C# Function/void that will access an object given in the arguments.
Go to solution
Solved by Mr_KoKa,
You would like to have a pointer, but since it is C# then there is no pointers and you would need to wrap your int into object and pass that object to te function,t hen function can access such obiect's member and modify it, so it won't be only modified inside function but it will remain modified as object aren't passed by value but by reference.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now