Want more features on Pastebin? Sign Up, it's FREE!
Guest

zenwalker

By: a guest on Aug 24th, 2012  |  syntax: C#  |  size: 0.33 KB  |  views: 15  |  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. Version 2:
  2. sealed class API
  3.     {
  4.         public string SomeProperty { get; }
  5.     }
  6.  
  7.  
  8. Version 2:
  9. class API
  10.     {
  11.         public string SomeProperty { get; protected set; }
  12.     }
  13.  
  14.     class TestAPI : API
  15.     {
  16.         public void SetValue(string value)
  17.         {
  18.             base.SomeProperty = value;
  19.         }
  20.     }
clone this paste RAW Paste Data