Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/stack.cs Secret

Last active Jun 19, 2019
Embed
What would you like to do?
public int Method1()
{
int value = 10;
Incrementer inc = new Incrementer(value);
inc.Increment();
inc.Increment();
return value;
}
public class Incrementer {
private int _value;
public Incrementer(int value) => _value = value;
public int Increment() => _value + 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.