Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 12  |  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. Properties and private set
  2. class Test
  3. {
  4.     int Abc { private set; get; }
  5. }
  6.        
  7. public int Abc { get; private set; }
  8.        
  9. class Test
  10. {
  11.     int Abc { get; set; }
  12. }
  13.        
  14. class Test
  15. {
  16.     public int Abc { get; private set; }
  17. }
  18.        
  19. class Test
  20. {
  21.     public int Abc1 { private set; get; }
  22.     protected  int Abc2 { private set; get; }
  23.     internal int Abc3 { private set; get; }
  24.     protected internal int Abc4 { private set; get; }
  25. }