title: C# Class Property set is not being call nor set
body: <p>My class property set is not being call nor is my property being set.<br />
  I have a class called StudentDraw  and there is a Property called Student that is that set is not being called. There is my code :</p>
  <pre><code> public UserSettings Student
      {
          get =&gt; _student;
          set
          {
              if (_student == value) return;
              _student = value;
              UserSettingsChanged?.Invoke(value);
          }
      }
  </code></pre>
  <p>Here is how  I  update it :</p>
  <pre><code>Student.NumberOfPicture ++;
  </code></pre>
  <p>here is my UserSettings  class :</p>
  <pre><code>public class UserSettings
  {
  
      public string CurrentUser;
      public int NumberOfPicture;
     
  
      public UserSettings()
      {
          CurrentUser = string.Empty;
         NumberOfPicture = 0;
          
      }
  
  }
  </code></pre>
  <p>I used breakpoints and it called the Get but it never call the Set with I do :</p>
  <pre><code>Student.NumberOfPicture ++;
  </code></pre>
  <p>Why is this ? and How do I fix it ?</p>