This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 31st, 2011  |  syntax: C#  |  size: 0.20 KB  |  views: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. private Apple apple;
  2.  
  3. public FruitHolder(ref Apple apple)
  4. {
  5.     this.apple = apple;
  6. }
  7.  
  8. public void DoSomethingWithApple()
  9. {
  10.     this.apple = new Apple(); // this is not saved? is there any way to?
  11. }
clone this paste RAW Paste Data