title: Know if variable in collection has changed
body: <p>I have <code>ObservableCollection</code> that contains class: <code>MyClass</code>.</p>
  
  <pre><code>    private ObservableCollection&lt;MyClass&gt; _myCollection;
  
      public ObservableCollection&lt;MyClass&gt; MyCollection
      {
          get { return _myCollection; }
          set
          {
              _myCollection= value;
          }
      }
  </code></pre>
  
  <p>I want to know in <code>C#</code> code, if the collection changed.</p>
  
  <p>So I registered to event of the collection: <code>CollectionChanged</code> it works when I add / delete a record.</p>
  
  <p>Here the registred:</p>
  
  <pre><code>   MyCollection.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(MyCollection_CollectionChanged);
  </code></pre>
  
  <p>I want this event to work (or register another event) when something changes within the class.</p>
  
  <p>At first I thought to register for <code>PropertyChanged</code> event of the class, then through it run the event <code>CollectionChanged</code> - it seems complicated and unnecessary.</p>
  
  <p>I think that as the <code>binding</code> of <code>wpf</code> can recognize a change in the class and a change in the collection itself, then it is possible to do this through code.</p>
  
  <p>Am I wrong? (More precise question is: Does anyone know a way to this?)</p>