Advertisement
Guest User

Untitled

a guest
May 28th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. Pick your poison and don't duplicate code you dirty noob
  2. ---
  3. public class Turn {
  4.    private Action action = null;
  5.    private Take take = null;
  6.  
  7.    public Turn(Action action) : this (action, null) {}
  8.  
  9.    public Turn(Action action, Take take) {
  10.        this.action = action;
  11.        this.take = take;
  12.    }
  13. }
  14.  
  15. ---
  16.  
  17. public class Turn {
  18.    private Action action = null;
  19.    private Take take = null;
  20.  
  21.    public Turn(Action action)  {
  22.        this.action = action;
  23.    }
  24.  
  25.    public Turn(Action action, Take take) : this(action) {
  26.        this.take = take;
  27.    }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement