title: Variables in preprocessor IFs not found ReSharper
body: <pre><code>class a
  {
     private int num;
     private Person p;
      ....
     public int SomeMethod()
    {
      #IF someCondition
       p = new Person();
       num = 2;
       p.Legs = num;
    } 
  }
  </code></pre>
  
  <p>Resharper says here that both of the fields are not being used. Which is false, i.e. depends on the condition. How can I avoid this?</p>
  
  <p>I searched for similar questions, found some but still didn't manage to understand how to fix this problem. So please, even if this question is duplicate, at least tell me how can I fix it exactly.</p>