Skip to content

Instantly share code, notes, and snippets.


gdyrrahitis/stack.cs Secret

Last active Jun 19, 2019
What would you like to do?
public int Method1()
int value = 10;
Incrementer inc = new Incrementer(value);
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