title: WPF Property return int null
body: <p>I have an int property in my viewmodel that returns a custom class property. I check if the class reference is null, and in that case I want to return some empty value to the view in order to NOT show any value.</p>
  
  <p>The code is like this:</p>
  
  <pre><code>public int percentage
  {
  get {
     if (customClass != null)
     {
        return customClass.getInt();
     }
     else
     {
        return 0;
     }
  ...
  }
  </code></pre>