title: Is it possible to return a read-only ObservableCollection that the caller can't modify?
body: <p>Consider the following code:</p>
  
  <pre><code>public ObservableCollection&lt;Message&gt; Messages {
     get { return new ObservableCollection&lt;Message&gt;(); }
  }
  </code></pre>
  
  <p>Is there anything I can do to prevent the caller code from adding/removing/changing items?</p>
  
  <p>EDIT: Sorry, everyone, I just noticed it's a <a href="https://stackoverflow.com/questions/1763696/how-can-i-make-a-read-only-observablecollection-property">dupe</a>, but the accepted answer is wrong.</p>